Reset Password
This function helps developers reset password with a single line of code.
Parameters
All parameters are required.
Parameter
Type
Description
$token
string
Token sent to user on forgot password stage
$password
string
The new password without encryption.
Usage
use Simcify\Auth;
Auth::reset("JLHB9JLHB95UC8U5UC8U", "NewPass@123")
Response
Response could be error or success.
array(
"status" => "success",
"title" => "Password reset!",
"message" => "Password successfully reset!"
)
Last updated