mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 15:14:58 +00:00
do not enforce 2facto auth for guest and when secret is set
This commit is contained in:
parent
5506c0ed69
commit
aa416f90ec
|
@ -166,8 +166,8 @@ if (!$user->isAdmin() && $origuser == null) {
|
|||
* if secret is not set and 2-factor authentication is turned on. Also check if
|
||||
* already on the page Setup2Factor.php and no user substiation has occured.
|
||||
*/
|
||||
if($settings->_enable2FactorAuthentication && $origuser == null && $user->getSecret() == '') {
|
||||
if(basename($_SERVER['SCRIPT_NAME']) != 'out.Setup2Factor.php') {
|
||||
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') {
|
||||
header("Location: ../out/out.Setup2Factor.php");
|
||||
exit;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user