Skip to content

Two step verification feature(more changes)#35

Merged
armanist merged 2 commits into
quantum-php:masterfrom
ManukyanArtak:master
Feb 11, 2021
Merged

Two step verification feature(more changes)#35
armanist merged 2 commits into
quantum-php:masterfrom
ManukyanArtak:master

Conversation

@ManukyanArtak

Copy link
Copy Markdown
Contributor

No description provided.

@armanist armanist self-requested a review February 10, 2021 14:13

$tokens = $this->setUpdatedTokens($user);

return $tokens;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The expression return $otp_token returns the type string which is incompatible with the documented return type array.

$user = $this->authService->get($this->keys['otpToken'], $otp_token);

if (new \DateTime() >= new \DateTime($user[$this->keys['otpExpiryIn']])){
throw new AuthException(ExceptionMessages::VERIFICATION_CODE_EXPIRY_IN);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The constant Quantum\Exceptions\ExceptionMessages::VERIFICATION_CODE_EXPIRY_IN was not found.


$this->towStepVerification($mailer, $user, $otp_expiry_time, $otp_token);

return $otp_token;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The expression return $otp_token returns the type string which is incompatible with the documented return type boolean.


$user = (array) $this->user();
if (new \DateTime() >= new \DateTime($user[$this->keys['otpExpiryIn']])){
throw new AuthException(ExceptionMessages::VERIFICATION_CODE_EXPIRY_IN);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The constant Quantum\Exceptions\ExceptionMessages::VERIFICATION_CODE_EXPIRY_IN was not found.

@armanist armanist merged commit 80619a3 into quantum-php:master Feb 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants