mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-19 21:35:13 +00:00
relax mfa check on service endpoints
This commit is contained in:
parent
9ca3a4cb88
commit
f291cd64dd
2 changed files with 2 additions and 1 deletions
|
@ -71,7 +71,8 @@ function authenticate_success($user_record, $channel = false, $login_initial = f
|
|||
// might want to log success here
|
||||
}
|
||||
|
||||
if ($_SESSION['2FA_REQUIRED'] && !$_SESSION['2FA_VERIFIED'] && App::$module !== 'totp_check') {
|
||||
if ($_SESSION['2FA_REQUIRED'] && !$_SESSION['2FA_VERIFIED'] &&
|
||||
!in_array(App::$module, ['totp_check', 'dav', 'cdav', 'addressbook', 'calendar', 'api'], true)) {
|
||||
goaway(z_root() . '/totp_check');
|
||||
}
|
||||
|
||||
|
|
0
util/fhublocs
Executable file → Normal file
0
util/fhublocs
Executable file → Normal file
Loading…
Reference in a new issue