summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2018-01-06 00:13:23 +0100
committerMorris Jobke <hey@morrisjobke.de>2018-01-11 14:08:47 +0100
commitb83204bf2cac18ed2fa1f07770a172932392abcc (patch)
tree779444a42ebb5cf1ad2deedf238d9c0974c4472d
parentc8c4ce2da5e5df61649588e0405aabbfa14dc9d7 (diff)
downloadnextcloud-server-b83204bf2cac18ed2fa1f07770a172932392abcc.tar.gz
nextcloud-server-b83204bf2cac18ed2fa1f07770a172932392abcc.zip
Add strengthify bar after plain text input clone of password input
To show the password in plain text "showPassword" adds a text input after the password input and swaps their visibility depending on whether the password has to be shown in plain text or not. In a similar way, "strengthify" by default adds the strength bar after the input element it was called on. Due to this, if "showPassword" is called before "strengthify" on the same password input then the strength bar ends between the password input and the text input, and when the text input is shown it appears below the strength bar. To fix this now the strength bar is added after the text input in those places in which "strengthify" was called after "showPassword" on the same element. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
-rw-r--r--apps/user_ldap/js/renewPassword.js1
-rw-r--r--settings/js/settings/personalInfo.js1
2 files changed, 2 insertions, 0 deletions
diff --git a/apps/user_ldap/js/renewPassword.js b/apps/user_ldap/js/renewPassword.js
index bea2c0409f7..7a58832c984 100644
--- a/apps/user_ldap/js/renewPassword.js
+++ b/apps/user_ldap/js/renewPassword.js
@@ -46,5 +46,6 @@ $(document).ready(function() {
t('core', 'Strong password')
],
drawTitles: true,
+ $addAfter: $('input[name="newPassword-clone"]'),
});
});
diff --git a/settings/js/settings/personalInfo.js b/settings/js/settings/personalInfo.js
index 0a39e607762..99254c42090 100644
--- a/settings/js/settings/personalInfo.js
+++ b/settings/js/settings/personalInfo.js
@@ -395,6 +395,7 @@ $(document).ready(function () {
t('settings', 'Strong password')
],
drawTitles: true,
+ $addAfter: $('input[name="newpassword-clone"]'),
});
// Load the big avatar