Fix registration flow with email as name
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
150e58880e
commit
ff71229016
|
|
@ -23,7 +23,7 @@ script('registration', 'form');
|
||||||
<img id="email-icon" class="svg" src="<?php print_unescaped(image_path('', 'actions/mail.svg')); ?>" alt=""/>
|
<img id="email-icon" class="svg" src="<?php print_unescaped(image_path('', 'actions/mail.svg')); ?>" alt=""/>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<?php if ($_['email_is_login']) { ?>
|
<?php if (!$_['email_is_login']) { ?>
|
||||||
<p class="groupmiddle">
|
<p class="groupmiddle">
|
||||||
<input type="text" name="username" id="username" value="<?php if (!empty($_['entered_data']['user'])) {
|
<input type="text" name="username" id="username" value="<?php if (!empty($_['entered_data']['user'])) {
|
||||||
p($_['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>
|
<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=""/>
|
<img id="username-icon" class="svg" src="<?php print_unescaped(image_path('', 'actions/user.svg')); ?>" alt=""/>
|
||||||
</p>
|
</p>
|
||||||
|
<?php } else { ?>
|
||||||
|
<input type="hidden" name="username" value="<?php p($_['email']); ?>" />
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
<p class="groupbottom">
|
<p class="groupbottom">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue