Rev 622 | Rev 639 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 622 | Rev 635 | ||
---|---|---|---|
Line 61... | Line 61... | ||
61 | $has_ra = $contentProvider->raNumLoggedIn() > 0; |
61 | $has_ra = $contentProvider->raNumLoggedIn() > 0; |
62 | 62 | ||
63 | // Check if the token generator is allowed |
63 | // Check if the token generator is allowed |
64 | if ($gen === self::JWT_GENERATOR_AJAX) { |
64 | if ($gen === self::JWT_GENERATOR_AJAX) { |
65 | if (($has_admin) && !OIDplus::baseConfig()->getValue('JWT_ALLOW_AJAX_ADMIN', true)) { |
65 | if (($has_admin) && !OIDplus::baseConfig()->getValue('JWT_ALLOW_AJAX_ADMIN', true)) { |
66 | // Generator: plugins/adminPages/910_automated_ajax_calls/OIDplusPageAdminAutomatedAJAXCalls.class.php |
66 | // Generator: plugins/viathinksoft/adminPages/910_automated_ajax_calls/OIDplusPageAdminAutomatedAJAXCalls.class.php |
67 | throw new OIDplusException(_L('The administrator has disabled this feature. (Base configuration setting %1).','JWT_ALLOW_AJAX_ADMIN')); |
67 | throw new OIDplusException(_L('The administrator has disabled this feature. (Base configuration setting %1).','JWT_ALLOW_AJAX_ADMIN')); |
68 | } |
68 | } |
69 | if (($has_ra) && !OIDplus::baseConfig()->getValue('JWT_ALLOW_AJAX_USER', true)) { |
69 | if (($has_ra) && !OIDplus::baseConfig()->getValue('JWT_ALLOW_AJAX_USER', true)) { |
70 | // Generator: plugins/raPages/910_automated_ajax_calls/OIDplusPageRaAutomatedAJAXCalls.class.php |
70 | // Generator: plugins/viathinksoft/raPages/910_automated_ajax_calls/OIDplusPageRaAutomatedAJAXCalls.class.php |
71 | throw new OIDplusException(_L('The administrator has disabled this feature. (Base configuration setting %1).','JWT_ALLOW_AJAX_USER')); |
71 | throw new OIDplusException(_L('The administrator has disabled this feature. (Base configuration setting %1).','JWT_ALLOW_AJAX_USER')); |
72 | } |
72 | } |
73 | } |
73 | } |
74 | else if ($gen === self::JWT_GENERATOR_LOGIN) { |
74 | else if ($gen === self::JWT_GENERATOR_LOGIN) { |
75 | // Used for feature "Remember me" (use JWT token in a cookie as alternative to PHP session): |
75 | // Used for feature "Remember me" (use JWT token in a cookie as alternative to PHP session): |