exclude oauth clients & app passwords from mailbox tfa

This commit is contained in:
FreddleSpl0it committed 2022-07-14 18:37:21 +02:00
1 parent 528f7da5ef
commit be08742653
2 files changed
+22 -18

No files matched your search

+1 -1
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) == 'user') {
if (check_login($username, $password, false, true) == 'user') {
return true;
}
return false;