Skip to content

Commit dab2f84

Browse files
committed
fix:patch up check for existing verified field
1 parent 472223a commit dab2f84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Auth/User.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ public function verifyEmail(): bool
190190
return true;
191191
}
192192

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

0 commit comments

Comments
 (0)