Page MenuHomePhabricator

D7577.diff

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

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)

Event Timeline