From aa859b5061ead047ee84fd1b68d7fa128755f283 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Sat, 3 Nov 2018 15:08:08 +0100 Subject: [PATCH] system: small issues with previous --- src/www/system_usermanager.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/www/system_usermanager.php b/src/www/system_usermanager.php index c17cdd87d..5132b4cba 100644 --- a/src/www/system_usermanager.php +++ b/src/www/system_usermanager.php @@ -481,6 +481,7 @@ $( document ).ready(function() { // import ldap users $("#import_ldap_users").click(function(){ + event.preventDefault(); url="system_usermanager_import_ldap.php"; var oWin = window.open(url,"OPNsense","width=620,height=400,top=150,left=150,scrollbars=yes"); if (oWin==null || typeof(oWin)=="undefined") { @@ -1057,7 +1058,7 @@ $( document ).ready(function() { $servers = explode(',', $config['system']['webgui']['authmode']); foreach ($servers as $server) { $authcfg_type = auth_get_authserver($server)['type']; - if ($authcfg_type == 'ldap' || $authcfg_type == 'ldap-totp') { + if ($authcfg_type == 'ldap' || $authcfg_type == 'ldap-totp') { $can_import = true; } }