hide password recovery note if email address can't be set

Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
This commit is contained in:
Bjoern Schiessle 2016-12-05 10:03:39 +01:00
parent 2f517899a2
commit 9e66d5d7cf
No known key found for this signature in database
GPG Key ID: 2378A753E2BF04F6
1 changed files with 4 additions and 2 deletions

View File

@ -97,8 +97,10 @@
<?php if(!$_['displayNameChangeSupported']) { ?>
<span><?php if(isset($_['email']) && !empty($_['email'])) { p($_['email']); } else { p($l->t('No email address set')); }?></span>
<?php } ?>
<br />
<em><?php p($l->t('For password recovery and notifications')); ?></em>
<?php if($_['displayNameChangeSupported']) { ?>
<br />
<em><?php p($l->t('For password recovery and notifications')); ?></em>
<?php } ?>
<span class="icon-checkmark hidden"/>
<input type="hidden" id="emailscope" value="<?php p($_['emailScope']) ?>">
</form>