Browse Source

[Web] fix set_tfa for ldap users

FreddleSpl0it 1 year ago
parent
commit
a3bb889def
1 changed files with 1 additions and 1 deletions
  1. 1 1
      data/web/inc/functions.inc.php

+ 1 - 1
data/web/inc/functions.inc.php

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