Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Paste
P1214
ForceLDAPUsernameListener.php
Active
Public
Actions
Authored by
epriestley
on Jul 25 2014, 11:18 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Flag For Later
Award Token
Tags
None
Referenced Files
F181445: ForceLDAPUsernameListener.php
Jul 25 2014, 11:18 PM
2014-07-25 23:18:43 (UTC+0)
Subscribers
None
<?php
final
class
ForceLDAPUsernameListener
extends
PhabricatorAutoEventListener
{
public
function
register
()
{
$this
->
listen
(
PhabricatorEventType
::
TYPE_AUTH_WILLREGISTERUSER
);
}
public
function
handleEvent
(
PhutilEvent
$event
)
{
$profile
=
$event
->
getValue
(
'profile'
);
$profile
->
setCanEditUsername
(
false
);
}
}
Event Timeline
epriestley
edited the content of this paste.
(Show Details)
Jul 25 2014, 11:18 PM
2014-07-25 23:18:43 (UTC+0)
epriestley
changed the title of this paste from untitled to
ForceLDAPUsernameListener.php
.
epriestley
updated the paste's language from
autodetect
to
autodetect
.
epriestley
mentioned this in
T11601: Prevent users from editing their username / real name during self-service registration
.
Sep 6 2016, 10:05 PM
2016-09-06 22:05:29 (UTC+0)
Log In to Comment