fix code review
o
This commit is contained in:
@@ -65,8 +65,12 @@ class wsBase
|
||||
global $RBAC;
|
||||
|
||||
try {
|
||||
//To enable compatibility with soap login, method Enable.
|
||||
$RBAC->enableLoginSoapWithHash();
|
||||
//To enable compatibility with hash login, method Enable.
|
||||
//It's necessary to enable the hash start session because there are use cases in both,
|
||||
//the web entry and in the case planner, where the password is still used in the hash
|
||||
//format so that is possible to start a session. Thiw way we will mantain the
|
||||
//compatibility with this type of loggin.
|
||||
$RBAC->enableLoginWithHash();
|
||||
$uid = $RBAC->VerifyLogin( $userid, $password );
|
||||
|
||||
switch ($uid) {
|
||||
@@ -119,8 +123,8 @@ class wsBase
|
||||
$wsResponse = unserialize( $e->getMessage() );
|
||||
}
|
||||
|
||||
//To enable compatibility with soap login, method disable.
|
||||
$RBAC->disableLoginSoapWithHash();
|
||||
//To enable compatibility with hash login, method disable.
|
||||
$RBAC->disableLoginWithHash();
|
||||
return $wsResponse;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user