We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4baee2f + 85d5133 commit 7ce972fCopy full SHA for 7ce972f
src/Traits/UserVerification.php
@@ -15,7 +15,7 @@ trait UserVerification
15
*/
16
public function isVerified()
17
{
18
- return $this->verified === 1;
+ return (bool) $this->verified;
19
}
20
21
/**
@@ -25,6 +25,16 @@ public function isVerified()
25
26
public function isPendingVerification()
27
28
- return $this->verified === 0 && $this->verification_token !== null;
+ return ! $this->isVerified() && $this->hasVerificationToken();
29
+ }
30
+
31
+ /**
32
+ * Checks if the user has a verification token.
33
+ *
34
+ * @return bool
35
+ */
36
+ public function hasVerificationToken()
37
+ {
38
+ return ! is_null($this->verification_token);
39
40
0 commit comments