1
0
mirror of https://github.com/mailcow/mailcow-dockerized.git synced 2025-12-13 18:06:01 +00:00

[Web] fix set_tfa for ldap users

This commit is contained in:
FreddleSpl0it
2024-02-20 11:41:02 +01:00
parent 3a1dcb3aaf
commit a3bb889def

View File

@@ -1072,7 +1072,7 @@ function set_tfa($_data) {
if ($row) {
if ($row['authsource'] == 'ldap'){
$iam_settings = identity_provider('get');
if (!ldap_mbox_login($username, $row['password'], $iam_settings)) $access_denied = true;
if (!ldap_mbox_login($username, $_data["confirm_password"], $iam_settings)) $access_denied = true;
else $access_denied = false;
} else {
if (!verify_hash($row['password'], $_data["confirm_password"])) $access_denied = true;