summaryrefslogtreecommitdiffstats
path: root/settings/templates
diff options
context:
space:
mode:
authorBjörn Schießle <schiessle@owncloud.com>2013-05-16 14:53:04 +0200
committerBjörn Schießle <schiessle@owncloud.com>2013-05-16 14:53:04 +0200
commit9d1e60325c6f478484ff8f70ff3cd13d9d7d4913 (patch)
tree3c341c7c65af8de027ade37a72fc4208355a41df /settings/templates
parent67a80e1870a47c0f060c58f65b3a6fc838c52b70 (diff)
downloadnextcloud-server-9d1e60325c6f478484ff8f70ff3cd13d9d7d4913.tar.gz
nextcloud-server-9d1e60325c6f478484ff8f70ff3cd13d9d7d4913.zip
allow admin to recover users files in case of password lost
Diffstat (limited to 'settings/templates')
-rw-r--r--settings/templates/personal.php2
-rw-r--r--settings/templates/users.php5
2 files changed, 6 insertions, 1 deletions
diff --git a/settings/templates/personal.php b/settings/templates/personal.php
index cfb45e99c4d..da812e8ed9a 100644
--- a/settings/templates/personal.php
+++ b/settings/templates/personal.php
@@ -38,7 +38,7 @@ if($_['passwordChangeSupported']) {
<div id="passwordchanged"><?php echo $l->t('Your password was changed');?></div>
<div id="passworderror"><?php echo $l->t('Unable to change your password');?></div>
<input type="password" id="pass1" name="oldpassword" placeholder="<?php echo $l->t('Current password');?>" />
- <input type="password" id="pass2" name="newpassword"
+ <input type="password" id="pass2" name="password"
placeholder="<?php echo $l->t('New password');?>" data-typetoggle="#personal-show" />
<input type="checkbox" id="personal-show" name="show" /><label for="personal-show"></label>
<input id="passwordbutton" type="submit" value="<?php echo $l->t('Change password');?>" />
diff --git a/settings/templates/users.php b/settings/templates/users.php
index e86dd46efbe..a6df85983dd 100644
--- a/settings/templates/users.php
+++ b/settings/templates/users.php
@@ -29,6 +29,11 @@ $_['subadmingroups'] = array_flip($items);
<?php endforeach;?>
</select> <input type="submit" value="<?php p($l->t('Create'))?>" />
</form>
+ <?php if((bool)$_['recoveryAdminEnabled']): ?>
+ <div class="recoveryPassword">
+ <input id="recoveryPassword" type="password" placeholder="<?php p($l->t('Admin Recovery Password'))?>" />
+ </div>
+ <?php endif; ?>
<div class="quota">
<span><?php p($l->t('Default Storage'));?></span>
<?php if((bool) $_['isadmin']): ?>