Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce new field verified_at. #178

Closed
wants to merge 4 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update isCompliant check
  • Loading branch information
Konafets committed May 9, 2018
commit 0f71a0340712a9915ba0daa7912096d8f63746d6
2 changes: 2 additions & 0 deletions src/UserVerification.php
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,7 @@ protected function wasVerified($user)
$user->verified = true;

$user->verified_at = Carbon::now();

$this->updateUser($user);

event(new UserVerified($user));
Expand Down Expand Up @@ -372,6 +373,7 @@ protected function updateUser($user)
protected function isCompliant(AuthenticatableContract $user)
{
return $this->hasColumn($user, 'verified')
&& $this->hasColumn($user, 'verified_at')
&& $this->hasColumn($user, 'verification_token')
? true
: false;
Expand Down