HOR-3686 Oauth2.0 does not work when I user postman

Add validation RBAC
This commit is contained in:
Marco A. Nina Mena
2017-08-11 18:04:12 -04:00
parent 98c51fd0d4
commit 1957e692d4

View File

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