Skip to content
Snippets Groups Projects
Commit 022b6984 authored by Morris Jobke's avatar Morris Jobke
Browse files

Show mail address & display name if it is read only

* gives the user the chance to verify it's mail address
  and display name
* ref #12823
* fixes #13393
parent 2fbe8bbc
Branches
No related tags found
No related merge requests found
...@@ -102,6 +102,13 @@ if($_['displayNameChangeSupported']) { ...@@ -102,6 +102,13 @@ if($_['displayNameChangeSupported']) {
<input type="hidden" id="oldDisplayName" name="oldDisplayName" value="<?php p($_['displayName'])?>" /> <input type="hidden" id="oldDisplayName" name="oldDisplayName" value="<?php p($_['displayName'])?>" />
</form> </form>
<?php <?php
} else {
?>
<div class="section">
<h2><?php echo $l->t('Full Name');?></h2>
<span><?php p($_['displayName'])?></span>
</div>
<?php
} }
?> ?>
...@@ -119,6 +126,13 @@ if($_['passwordChangeSupported']) { ...@@ -119,6 +126,13 @@ if($_['passwordChangeSupported']) {
<em><?php p($l->t('Fill in an email address to enable password recovery and receive notifications'));?></em> <em><?php p($l->t('Fill in an email address to enable password recovery and receive notifications'));?></em>
</form> </form>
<?php <?php
} else {
?>
<div class="section">
<h2><?php echo $l->t('Email'); ?></h2>
<span><?php if($_['email']) { p($_['email']); } else { p($l->t('No email address set')); }?></span>
</div>
<?php
} }
?> ?>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment