Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13984350
D7577.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
901 B
Referenced Files
None
Subscribers
None
D7577.diff
View Options
Index: src/applications/auth/controller/PhabricatorAuthRegisterController.php
===================================================================
--- src/applications/auth/controller/PhabricatorAuthRegisterController.php
+++ src/applications/auth/controller/PhabricatorAuthRegisterController.php
@@ -326,13 +326,20 @@
}
- $form
- ->appendChild(
+ if ($can_edit_username) {
+ $form->appendChild(
id(new AphrontFormTextControl())
->setLabel(pht('Phabricator Username'))
->setName('username')
->setValue($value_username)
->setError($e_username));
+ } else {
+ $form->appendChild(
+ id(new AphrontFormMarkupControl())
+ ->setLabel(pht('Phabricator Username'))
+ ->setValue($value_username)
+ ->setError($e_username));
+ }
if ($must_set_password) {
$form->appendChild(
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Oct 21, 12:44 PM (3 w, 1 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6734590
Default Alt Text
D7577.diff (901 B)
Attached To
Mode
D7577: Respect "can edit username" in registration UI
Attached
Detach File
Event Timeline
Log In to Comment