Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F97328424
PhabricatorSetupCheckAuth.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
Sat, Jan 4, 05:52
Size
839 B
Mime Type
text/x-php
Expires
Mon, Jan 6, 05:52 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
23384787
Attached To
rPH Phabricator
PhabricatorSetupCheckAuth.php
View Options
<?php
final
class
PhabricatorSetupCheckAuth
extends
PhabricatorSetupCheck
{
protected
function
executeChecks
()
{
$providers
=
PhabricatorAuthProvider
::
getAllEnabledProviders
();
if
(!
$providers
)
{
$message
=
pht
(
'You have not configured any authentication providers yet. You '
.
'should add a provider (like username/password, LDAP, or GitHub '
.
'OAuth) so users can register and log in. You can add and configure '
.
'providers %s.'
,
phutil_tag
(
'a'
,
array
(
'href'
=>
'/auth/'
,
),
pht
(
'using the "Auth" application'
)));
$this
->
newIssue
(
'auth.noproviders'
)
->
setShortName
(
pht
(
'No Auth Providers'
))
->
setName
(
pht
(
'No Authentication Providers Configured'
))
->
setMessage
(
$message
);
}
}
}
Event Timeline
Log In to Comment