mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-11-29 02:50:39 +00:00
allow logout if 2-factor auth is enforced
This commit is contained in:
parent
244d483cf4
commit
630399c3c8
|
|
@ -144,7 +144,7 @@ if (!$user->isAdmin() && $origuser == null) {
|
|||
* already on the page Setup2Factor.php and no user substiation has occured.
|
||||
*/
|
||||
if($settings->_enable2FactorAuthentication && $settings->_guestID != $user->getID() && $settings->_autoLoginUser != $user->getID() && $origuser == null && $user->getSecret() == '') {
|
||||
if(basename($_SERVER['SCRIPT_NAME']) != 'out.Setup2Factor.php' && basename($_SERVER['SCRIPT_NAME']) != 'op.Setup2Factor.php') {
|
||||
if(!in_array(basename($_SERVER['SCRIPT_NAME']), ['out.Setup2Factor.php', 'op.Setup2Factor.php', 'op.Logout.php'])) {
|
||||
header("Location: ../out/out.Setup2Factor.php");
|
||||
exit;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user