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

github.com/nextcloud/user_saml.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2016-06-29 21:34:10 +0300
committerLukas Reschke <lukas@owncloud.com>2016-06-29 21:34:10 +0300
commitf7349588361457f61ce4877c9939ce1852bb7053 (patch)
treea217c3210106a3de493d233ac5161543bedbc421 /js
parent487bf7616575aafc5057af1acf14a39da2545f26 (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.js13
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() {