aboutsummaryrefslogtreecommitdiffstats
path: root/settings/templates
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2018-06-29 13:01:22 +0200
committerJulius Härtl <jus@bitgrid.net>2018-06-29 13:35:07 +0200
commit3f77b0fc8b3f1c00902ad6a12747e8b0a10ac50d (patch)
treef163da73819c21f030320db38ef5480b0464ce7c /settings/templates
parenta788f4911491cf58dfcde94b9491c79d844347be (diff)
downloadnextcloud-server-3f77b0fc8b3f1c00902ad6a12747e8b0a10ac50d.tar.gz
nextcloud-server-3f77b0fc8b3f1c00902ad6a12747e8b0a10ac50d.zip
Move user password form to security settings
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'settings/templates')
-rw-r--r--settings/templates/settings/personal/personal.info.php32
-rw-r--r--settings/templates/settings/personal/security.php36
2 files changed, 36 insertions, 32 deletions
diff --git a/settings/templates/settings/personal/personal.info.php b/settings/templates/settings/personal/personal.info.php
index 1946e3ec66e..3e8f31cf073 100644
--- a/settings/templates/settings/personal/personal.info.php
+++ b/settings/templates/settings/personal/personal.info.php
@@ -31,8 +31,6 @@ script('settings', [
'federationscopemenu',
'settings/personalInfo',
]);
-vendor_script('strengthify/jquery.strengthify');
-vendor_style('strengthify/strengthify');
vendor_script('jcrop/js/jquery.Jcrop');
vendor_style('jcrop/css/jquery.Jcrop');
@@ -376,36 +374,6 @@ vendor_style('jcrop/css/jquery.Jcrop');
</form>
<?php } ?>
</div>
- <div class="personal-settings-setting-box personal-settings-password-box">
- <?php
- if($_['passwordChangeSupported']) {
- script('jquery-showpassword');
- ?>
- <form id="passwordform" class="section">
- <h2 class="inlineblock"><?php p($l->t('Password'));?></h2>
- <div id="password-error-msg" class="msg success inlineblock" style="display: none;">Saved</div>
-
- <label for="pass1" class="hidden-visually"><?php p($l->t('Current password')); ?>: </label>
- <input type="password" id="pass1" name="oldpassword"
- placeholder="<?php p($l->t('Current password'));?>"
- autocomplete="off" autocapitalize="none" autocorrect="off" />
-
- <div class="personal-show-container">
- <label for="pass2" class="hidden-visually"><?php p($l->t('New password'));?>: </label>
- <input type="password" id="pass2" name="newpassword"
- placeholder="<?php p($l->t('New password')); ?>"
- data-typetoggle="#personal-show"
- autocomplete="off" autocapitalize="none" autocorrect="off" />
- <input type="checkbox" id="personal-show" name="show" /><label for="personal-show" class="personal-show-label"></label>
- </div>
-
- <input id="passwordbutton" type="submit" value="<?php p($l->t('Change password')); ?>" />
-
- </form>
- <?php
- }
- ?>
- </div>
<span class="msg"></span>
</div>
diff --git a/settings/templates/settings/personal/security.php b/settings/templates/settings/personal/security.php
index 9b0d9b6e8d0..e0de11de60e 100644
--- a/settings/templates/settings/personal/security.php
+++ b/settings/templates/settings/personal/security.php
@@ -22,14 +22,50 @@
*/
script('settings', [
+ 'security_password',
'authtoken',
'authtoken_collection',
'authtoken_view',
'settings/authtoken-init'
]);
+if($_['passwordChangeSupported']) {
+ script('jquery-showpassword');
+ vendor_script('strengthify/jquery.strengthify');
+ vendor_style('strengthify/strengthify');
+}
+
?>
+<div id="security-password" class="section">
+ <h2 class="inlineblock"><?php p($l->t('Password'));?></h2>
+ <span id="password-error-msg" class="msg success hidden">Saved</span>
+ <div class="personal-settings-setting-box personal-settings-password-box">
+ <?php if($_['passwordChangeSupported']) { ?>
+ <form id="passwordform">
+ <label for="pass1" class="hidden-visually"><?php p($l->t('Current password')); ?>: </label>
+ <input type="password" id="pass1" name="oldpassword"
+ placeholder="<?php p($l->t('Current password'));?>"
+ autocomplete="off" autocapitalize="none" autocorrect="off" />
+
+ <div class="personal-show-container">
+ <label for="pass2" class="hidden-visually"><?php p($l->t('New password'));?>: </label>
+ <input type="password" id="pass2" name="newpassword"
+ placeholder="<?php p($l->t('New password')); ?>"
+ data-typetoggle="#personal-show"
+ autocomplete="off" autocapitalize="none" autocorrect="off" />
+ <input type="checkbox" id="personal-show" name="show" /><label for="personal-show" class="personal-show-label"></label>
+ </div>
+
+ <input id="passwordbutton" type="submit" value="<?php p($l->t('Change password')); ?>" />
+
+ </form>
+ <?php
+ }
+ ?>
+ </div>
+ <span class="msg"></span>
+</div>
<div id="security" class="section">
<h2><?php p($l->t('Devices & sessions'));?></h2>