diff options
author | Lukas Reschke <lukas@owncloud.com> | 2016-06-29 21:34:10 +0300 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2016-06-29 21:34:10 +0300 |
commit | f7349588361457f61ce4877c9939ce1852bb7053 (patch) | |
tree | a217c3210106a3de493d233ac5161543bedbc421 /js | |
parent | 487bf7616575aafc5057af1acf14a39da2545f26 (diff) |
Add possibility to enforce local user account
Fixes https://github.com/nextcloud/user_saml/issues/12
Fixes https://github.com/nextcloud/user_saml/issues/5
Diffstat (limited to 'js')
-rw-r--r-- | js/admin.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/js/admin.js b/js/admin.js index 9ee0ee4b..d10d5bc4 100644 --- a/js/admin.js +++ b/js/admin.js @@ -45,6 +45,19 @@ $(function() { } }); + $('#user-saml-general input[type="checkbox"]').change(function(e) { + var el = $(this); + $.when(el.focusout()).then(function() { + var key = $(this).attr('name'); + if($(this).val() === "0") { + $(this).val("1"); + } else { + $(this).val("0"); + } + setSAMLConfigValue('general', key, $(this).val()); + }); + }); + $('#user-saml-security input[type="checkbox"]').change(function(e) { var el = $(this); $.when(el.focusout()).then(function() { |