[Web] Use SQL password only when authsource is mailcow

This commit is contained in:
FreddleSpl0it 2025-03-07 13:15:27 +01:00
parent bc21e7fe50
commit 82eb3c64cd
No known key found for this signature in database
GPG Key ID: 00E14E7634F4BEC5

View File

@ -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