Explorar el Código

#2798 - Wrong account locked behaviour

RomanL hace 6 años
padre
commit
61ba7b09b1
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. 5 0
      inc/profiles.inc.php

+ 5 - 0
inc/profiles.inc.php

@@ -181,6 +181,11 @@ function bx_check_password($sLogin, $sPassword, $iRole = BX_DOL_ROLE_MEMBER)
         bx_import('BxDolLanguages');
         return _t("_sys_txt_login_error");
     }
+    
+    if ($oAccount->isLocked()){
+        bx_import('BxDolLanguages');
+		return _t("_sys_txt_login_locked", BX_DOL_URL_ROOT . BxDolPermalinks::getInstance()->permalink('page.php?i=forgot-password'));
+	}
 
     $aAccountInfo = $oAccount->getInfo();