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

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!"
)
PreviousForgot PasswordNextConfiguration

Last updated 6 years ago