Forgot Password
Handle a forgot password request with one line of code.
Parameters
All parameters are required.
Parameter
Type
Description
string
Email of the account to reset password.
$resetlink
string
A url to page where user will reset password, use tag [token]
on your url where you want to put reset token.
Usage
use Simcify\Auth;
Auth::forgot("jane@example.com", "https://example.com/reset/[token]");
Response
Response could be error or success.
array(
"status" => "success",
"title" => "Email sent!",
"message" => "Email with reset instructions successfully sent!"
)
Last updated