UserModel
class UserModel (View source)
The user model.
Methods
changePassword(string $username, string $currentPassword, string $newPassword)
Change a user password
bool
resetPassword(string $username, string $newPassword1, string $newPassword2, Messenger $Messenger)
Handle password resetting.
bool
sendPasswordResetToken(User $User, Messenger $Messenger)
Send password reset token and store it in session.
bool
verifyPasswordResetToken(string $username, string $token)
Verify if the passed username/toke combination matches a token hash in the session data array.
Details
at line 64
Response
changePassword(string $username, string $currentPassword, string $newPassword)
Change a user password
at line 94
bool
resetPassword(string $username, string $newPassword1, string $newPassword2, Messenger $Messenger)
Handle password resetting.
at line 121
bool
sendPasswordResetToken(User $User, Messenger $Messenger)
Send password reset token and store it in session.
at line 156
bool
verifyPasswordResetToken(string $username, string $token)
Verify if the passed username/toke combination matches a token hash in the session data array.