Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F82429
D7577.diff
All Users
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
917 B
Referenced Files
None
Subscribers
None
D7577.diff
View Options
diff --git a/src/applications/auth/controller/PhabricatorAuthRegisterController.php b/src/applications/auth/controller/PhabricatorAuthRegisterController.php
--- a/src/applications/auth/controller/PhabricatorAuthRegisterController.php
+++ b/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/x-diff
Storage Engine
amazon-s3
Storage Format
Raw Data
Storage Handle
phabricator/7j/kd/64itaqdd6hrdtvd6
Default Alt Text
D7577.diff (917 B)
Attached To
Mode
D7577: Respect "can edit username" in registration UI
Attached
Detach File
Event Timeline
Log In to Comment