[Web] Mailbox TFA fix

This commit is contained in:
FreddleSpl0it
2022-08-25 14:26:45 +02:00
parent c8620a066d
commit 555f4a8a6d
2 changed files with 27 additions and 23 deletions

View File

@@ -131,7 +131,7 @@ class mailcowPdo extends OAuth2\Storage\Pdo {
$this->config['user_table'] = 'mailbox';
}
public function checkUserCredentials($username, $password) {
if (check_login($username, $password, false, true) == 'user') {
if (check_login($username, $password) == 'user') {
return true;
}
return false;