-
Notifications
You must be signed in to change notification settings - Fork 117
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
Switch from boolean to dateTime for verified field #177
Labels
Comments
Konafets
added a commit
to Konafets/laravel-user-verification
that referenced
this issue
May 9, 2018
The new field will be added next to the current field `verified`, which stores the information if a user has been verified its email address. Internally the new field is used for verification by check the field against `null`. The new field makes it possible to not only store _if_ a user has been verified but also _when_. Closes jrean#177
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently the verified field is a
boolean
type and does just say, that a user has been verified or not. Imagine to change the type todateTime
or add a new fieldverified_at
.With this simple change we have the information when the user has been verified. The check if the user is verified would be changed to
return is_null($this->verified_at)
.The text was updated successfully, but these errors were encountered: