mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2025-12-13 09:56:01 +00:00
[Web] Use SQL password only when authsource is mailcow
This commit is contained in:
@@ -277,7 +277,7 @@ function user_login($user, $pass, $extra = null){
|
|||||||
}
|
}
|
||||||
return $result;
|
return $result;
|
||||||
break;
|
break;
|
||||||
default:
|
case 'mailcow':
|
||||||
// verify password
|
// verify password
|
||||||
if (verify_hash($row['password'], $pass) !== false) {
|
if (verify_hash($row['password'], $pass) !== false) {
|
||||||
// check for tfa authenticators
|
// check for tfa authenticators
|
||||||
|
|||||||
Reference in New Issue
Block a user