codestyle fix
This commit is contained in:
parent
56a09b22cb
commit
2b2c10ac02
1 changed files with 2 additions and 1 deletions
|
@ -59,8 +59,8 @@ class UserVerificationService
|
|||
int $verificationLength = self::DEFAULT_CODE_LENGHT
|
||||
) {
|
||||
$this->checkAuth();
|
||||
$userId = $this->user->GetID();
|
||||
|
||||
$userId = $this->user->GetID();
|
||||
/** @var \Intaro\RetailCrm\Model\Bitrix\User $user */
|
||||
$user = UserRepository::getFirstByParams(
|
||||
[
|
||||
|
@ -131,6 +131,7 @@ class UserVerificationService
|
|||
{
|
||||
global $USER;
|
||||
$this->user = $USER;
|
||||
|
||||
if (!$this->user->IsAuthorized()) {
|
||||
throw new Exception(self::NOT_AUTHORIZE);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue