Page MenuHomePhabricator

D7577.id17108.diff
No OneTemporary

D7577.id17108.diff

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

Mime Type
text/plain
Expires
Sun, Oct 20, 1:15 AM (3 w, 3 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6734590
Default Alt Text
D7577.id17108.diff (901 B)

Event Timeline