mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2026-11-14 04:02:44 +00:00
exclude oauth clients & app passwords from mailbox tfa
This commit is contained in:
2 files changed
+22
-18
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user