feature:2517 ability to change username. admins can change usernames, users are notified by mail

git-svn-id: http://piwigo.org/svn/trunk@12882 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
mistic100
2012-01-14 10:50:47 +00:00
parent 56452f8711
commit 25481da931
6 changed files with 59 additions and 19 deletions
@@ -5,24 +5,22 @@
<input type="hidden" name="redirect" value="{$REDIRECT}">
<ul>
<li>
<span class="property">{'Username'|@translate}</span>
<span class="property">
<label for="username">{'Username'|@translate}</label>
</span>
{if not $SPECIAL_USER}
<input type="text" name="username" id="username" value="{$USERNAME}">
{else}
{$USERNAME}
{/if}
</li>
{if not $SPECIAL_USER} {* can modify password + email*}
{if not $SPECIAL_USER} {* can modify password + email*}
<li>
<span class="property">
<label for="mail_address">{'Email address'|@translate}</label>
</span>
<input type="text" name="mail_address" id="mail_address" value="{$EMAIL}">
</li>
{if not $IN_ADMIN} {* admins do not need old password*}
<li>
<span class="property">
<label for="password">{'Password'|@translate}</label>
</span>
<input type="password" name="password" id="password" value="">
</li>
{/if}
<li>
<span class="property">
<label for="use_new_pwd">{'New password'|@translate}</label>
@@ -35,7 +33,7 @@
</span>
<input type="password" name="passwordConf" id="passwordConf" value="">
</li>
{/if}
{/if}
</ul>
</fieldset>