Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/password_policy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/settings-admin.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/js/settings-admin.js b/js/settings-admin.js
index 07db858..73a1539 100644
--- a/js/settings-admin.js
+++ b/js/settings-admin.js
@@ -76,6 +76,13 @@ $(document).ready(function(){
}
OCP.AppConfig.setValue('password_policy', 'enforceSpecialCharacters', value);
});
+ $('#password-policy-enforce-have-i-been-pwned').click(function() {
+ var value = '0';
+ if (this.checked) {
+ value = '1';
+ }
+ OCP.AppConfig.setValue('password_policy', 'enforceHaveIBeenPwned', value);
+ });
$('#password-policy-min-length').keyup(function (e) {
if (e.keyCode === 13) {