Neuron-PHP

IPasswordResetService

Password reset service interface

Table of Contents

Methods

requestReset()  : bool
Request a password reset for the given email
resetPassword()  : bool
Reset password using token
validateToken()  : PasswordResetToken|null
Validate a password reset token

Methods

requestReset()

Request a password reset for the given email

public requestReset(string $email) : bool
Parameters
$email : string
Tags
throws
Exception
Return values
bool

True if reset email sent

resetPassword()

Reset password using token

public resetPassword(string $token, string $newPassword) : bool
Parameters
$token : string
$newPassword : string
Tags
throws
Exception
Return values
bool

True if password reset successful


        
On this page

Search results