diff options
author | Joas Schilling <coding@schilljs.com> | 2020-08-18 18:30:41 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2020-08-18 18:30:41 +0300 |
commit | ff71229016b0a7bf42c7aafcf0a3cdae9ced9dad (patch) | |
tree | 82f800864947332fa4c25eb9309c6d63b4231993 /templates | |
parent | 150e58880e2df492f458745d43edfe88bc8978db (diff) |
Fix registration flow with email as name
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'templates')
-rw-r--r-- | templates/form/user.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/templates/form/user.php b/templates/form/user.php index c9e81b0..c3f3dc0 100644 --- a/templates/form/user.php +++ b/templates/form/user.php @@ -23,7 +23,7 @@ script('registration', 'form'); <img id="email-icon" class="svg" src="<?php print_unescaped(image_path('', 'actions/mail.svg')); ?>" alt=""/> </p> - <?php if ($_['email_is_login']) { ?> + <?php if (!$_['email_is_login']) { ?> <p class="groupmiddle"> <input type="text" name="username" id="username" value="<?php if (!empty($_['entered_data']['user'])) { p($_['entered_data']['user']); @@ -31,6 +31,8 @@ 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 } else { ?> + <input type="hidden" name="username" value="<?php p($_['email']); ?>" /> <?php } ?> <p class="groupbottom"> |