diff options
author | Maxence Lange <maxence@artificial-owl.com> | 2020-01-16 15:48:06 +0300 |
---|---|---|
committer | Maxence Lange <maxence@artificial-owl.com> | 2020-08-18 17:01:01 +0300 |
commit | 459c9e0454b1ac1f9408fc8da393a830f68ce427 (patch) | |
tree | ed2629fb35aabcc7b836b7bb65e69bde2df31ade /templates/form.php | |
parent | 570c86664f74b29a56ce29cc62c4c6c20f051269 (diff) |
ignore username input
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'templates/form.php')
-rw-r--r-- | templates/form.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/templates/form.php b/templates/form.php index ada251e..51b21eb 100644 --- a/templates/form.php +++ b/templates/form.php @@ -23,6 +23,7 @@ script('registration', 'form'); <img id="email-icon" class="svg" src="<?php print_unescaped(image_path('', 'actions/mail.svg')); ?>" alt=""/> </p> + <?php if ( \OC::$server->getConfig()->getAppValue('registration', 'email_is_login', '0') !== '1' ) { ?> <p class="groupmiddle"> <input type="text" name="username" id="username" value="<?php if (!empty($_['entered_data']['user'])) { p($_['entered_data']['user']); @@ -30,6 +31,7 @@ script('registration', 'form'); <label for="username" class="infield"><?php p($l->t('Username')); ?></label> <img id="username-icon" class="svg" src="<?php print_unescaped(image_path('', 'actions/user.svg')); ?>" alt=""/> </p> + <?php } ?> <p class="groupbottom"> <input type="password" name="password" id="password" placeholder="<?php p($l->t('Password')); ?>"/> |