mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-19 15:55:13 +00:00
relax mfa checks on service endpoints
This commit is contained in:
parent
0524ca1702
commit
5cde03fa49
1 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', 'api', 'addressbook', 'calendar'], true)) {
|
||||
goaway(z_root() . '/totp_check');
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue