HOR-3686 Oauth2.0 does not work when I user postman
Add validation RBAC
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user