Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F83109343
PhabricatorSetupCheckFacebook.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Sep 15, 06:22
Size
1 KB
Mime Type
text/x-php
Expires
Tue, Sep 17, 06:22 (1 d, 22 h)
Engine
blob
Format
Raw Data
Handle
20795441
Attached To
rPH Phabricator
PhabricatorSetupCheckFacebook.php
View Options
<?php
final
class
PhabricatorSetupCheckFacebook
extends
PhabricatorSetupCheck
{
protected
function
executeChecks
()
{
$fb_auth
=
PhabricatorEnv
::
getEnvConfig
(
'facebook.auth-enabled'
);
if
(!
$fb_auth
)
{
return
;
}
if
(!
PhabricatorEnv
::
getEnvConfig
(
'facebook.application-id'
))
{
$message
=
pht
(
'You have enabled Facebook authentication, but have not provided a '
.
'Facebook Application ID. Provide one or disable Facebook '
.
'authentication.'
);
$this
->
newIssue
(
'config.facebook.application-id'
)
->
setName
(
pht
(
"Facebook Application ID Not Set"
))
->
setMessage
(
$message
)
->
addPhabricatorConfig
(
'facebook.auth-enabled'
)
->
addPhabricatorConfig
(
'facebook.application-id'
);
}
if
(!
PhabricatorEnv
::
getEnvConfig
(
'facebook.application-secret'
))
{
$message
=
pht
(
'You have enabled Facebook authentication, but have not provided a '
.
'Facebook Application Secret. Provide one or disable Facebook '
.
'authentication.'
);
$this
->
newIssue
(
'config.facebook.application-secret'
)
->
setName
(
pht
(
"Facebook Application Secret Not Set"
))
->
setMessage
(
$message
)
->
addPhabricatorConfig
(
'facebook.auth-enabled'
)
->
addPhabricatorConfig
(
'facebook.application-secret'
);
}
}
}
Event Timeline
Log In to Comment