#188 fixed issue with self service Ajax requests
This commit is contained in:
parent
c51f2893ce
commit
997a4530e6
|
@ -1473,7 +1473,7 @@ function validateReCAPTCHA($secretKey) {
|
||||||
* @param boolean $check2ndFactor check if the 2nd factor was provided if required
|
* @param boolean $check2ndFactor check if the 2nd factor was provided if required
|
||||||
*/
|
*/
|
||||||
function enforceUserIsLoggedIn($check2ndFactor = true) {
|
function enforceUserIsLoggedIn($check2ndFactor = true) {
|
||||||
if (!isset($_SESSION['loggedIn']) || ($_SESSION['loggedIn'] !== true)) {
|
if ((!isset($_SESSION['loggedIn']) || ($_SESSION['loggedIn'] !== true)) && empty($_SESSION['selfService_clientPassword'])) {
|
||||||
logNewMessage(LOG_WARNING, 'Detected unauthorized access to page that requires login: ' . $_SERVER["SCRIPT_FILENAME"]);
|
logNewMessage(LOG_WARNING, 'Detected unauthorized access to page that requires login: ' . $_SERVER["SCRIPT_FILENAME"]);
|
||||||
die();
|
die();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue