Skip to content

Commit

Permalink
fix:patch up check for existing verified field
Browse files Browse the repository at this point in the history
  • Loading branch information
mychidarko committed Jan 15, 2025
1 parent 472223a commit dab2f84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Auth/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ public function verifyEmail(): bool
return true;
}

if (!isset($this->data['email_verified_at'])) {
if (!array_key_exists('email_verified_at', $this->data)) {
$this->db->query('ALTER TABLE ' . Config::get('db.table') . ' ADD COLUMN email_verified_at TIMESTAMP NULL DEFAULT NULL')->execute();
}

Expand Down

0 comments on commit dab2f84

Please sign in to comment.