diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2018-02-24 18:14:16 +0300 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-02-26 14:51:21 +0300 |
commit | fed9c37ff620cb74dc027a5a40b27313e26c5ba3 (patch) | |
tree | c98cabc1963f57629556eb9b161127b540ba99ed /js | |
parent | c3d0f7a88f8742e55381780b716077182bf74e95 (diff) |
Allo to check against haveibeenpwned.com password list
fixes #58
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'js')
-rw-r--r-- | js/settings-admin.js | 7 |
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) { |