aboutsummaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2018-08-08 08:32:54 +0200
committerGitHub <noreply@github.com>2018-08-08 08:32:54 +0200
commitbee65f8053f3c5915c83931740b00ce8e458e44d (patch)
treedeb055dec542acb98532e0a9d46cba6881683fda /settings
parent1cb8fe3cb05f98a78d0d86cc0dd0633accbcc2fb (diff)
parent318682dd6dc81de2135af0f6bb609be1064467ac (diff)
downloadnextcloud-server-bee65f8053f3c5915c83931740b00ce8e458e44d.tar.gz
nextcloud-server-bee65f8053f3c5915c83931740b00ce8e458e44d.zip
Merge pull request #10572 from nextcloud/bugfix/10464/security-password-change
Fix security settings if password change is disabled
Diffstat (limited to 'settings')
-rw-r--r--settings/templates/settings/personal/security.php9
1 files changed, 3 insertions, 6 deletions
diff --git a/settings/templates/settings/personal/security.php b/settings/templates/settings/personal/security.php
index e0de11de60e..253f20c0a2b 100644
--- a/settings/templates/settings/personal/security.php
+++ b/settings/templates/settings/personal/security.php
@@ -22,7 +22,6 @@
*/
script('settings', [
- 'security_password',
'authtoken',
'authtoken_collection',
'authtoken_view',
@@ -30,18 +29,18 @@ script('settings', [
]);
if($_['passwordChangeSupported']) {
+ script('settings', 'security_password');
script('jquery-showpassword');
vendor_script('strengthify/jquery.strengthify');
vendor_style('strengthify/strengthify');
}
?>
-
+<?php if($_['passwordChangeSupported']) { ?>
<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"
@@ -60,12 +59,10 @@ if($_['passwordChangeSupported']) {
<input id="passwordbutton" type="submit" value="<?php p($l->t('Change password')); ?>" />
</form>
- <?php
- }
- ?>
</div>
<span class="msg"></span>
</div>
+<?php } ?>
<div id="security" class="section">
<h2><?php p($l->t('Devices & sessions'));?></h2>