Merged in bugfix/HOR-3686 (pull request #5934)

HOR-3686

Approved-by: Julio Cesar Laura Avendaño <contact@julio-laura.com>
This commit is contained in:
Marco Antonio Nina Mena
2017-08-14 13:11:04 +00:00
committed by Julio Cesar Laura Avendaño

View File

@@ -2592,7 +2592,7 @@ class Bootstrap
$hashTypePrevious = $passwordHashConfig['previous'];
$acceptance = false;
if ($RBAC->loginWithHash()) {
if ($RBAC != null && $RBAC->loginWithHash()) {
//To enable compatibility with soap login
if ((Bootstrap::hashPassword($pass, $hashTypeCurrent) == $userPass) || ($pass === $hashTypeCurrent . ':' . $userPass)) {
$acceptance = true;