1
0
mirror of https://github.com/mailcow/mailcow-dockerized.git synced 2025-02-03 13:22:17 +02:00

[Web] remove unnecessary if block

This commit is contained in:
FreddleSpl0it 2023-07-07 09:30:32 +02:00 committed by DerLinkman
parent 6df663825a
commit 21fa3c8458
No known key found for this signature in database
GPG Key ID: F109FD97469550A2

View File

@ -182,8 +182,6 @@ function mailcow_mbox_login($user, $pass, $app_passwd_data = false, $is_internal
foreach ($rows as $row) {
// verify password
if (verify_hash($row['password'], $pass) !== false) {
if (!array_key_exists("app_passwd_id", $row)){
// password is not a app password
// check for tfa authenticators
$authenticators = get_tfa($user);
if (isset($authenticators['additional']) && is_array($authenticators['additional']) && count($authenticators['additional']) > 0 && !$is_internal) {
@ -215,7 +213,6 @@ function mailcow_mbox_login($user, $pass, $app_passwd_data = false, $is_internal
}
}
}
}
return false;
}