Simcy Creative
  • What is Simcify
  • Requirements
  • Getting Started
  • Javascript Functions
    • Simple js Functions
    • Interaction Functions
      • Loader
      • Notifications
      • Credit Card Form
    • Helper Functions
      • Random
      • Cookies
      • Send to server(Ajax)
      • Server Responses
    • HTML helpers
      • Form Processing
      • Send onClick
      • Send onChange
      • Fetch & Display
      • Dropify
      • Switchery
      • Crop Image Input
      • Image Preview
  • PHP Functions
    • Introduction
    • Setup
    • Authentication
      • Login
      • Register
      • Forgot Password
      • Reset Password
    • Configuration
    • Email & SMS
      • SMS
        • Africa's Talking
        • Twilio
      • Email
    • Files Manager
      • Upload
      • Delete
Powered by GitBook
On this page
  • Parameters
  • Usage
  • Response
  1. PHP Functions
  2. Authentication

Forgot Password

Handle a forgot password request with one line of code.

Parameters

All parameters are required.

Parameter

Type

Description

$email

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!"
)
PreviousRegisterNextReset Password

Last updated 6 years ago