Download the PHP package syehan/forgotpassword-plugin without Composer
On this page you can find all versions of the php package syehan/forgotpassword-plugin. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download syehan/forgotpassword-plugin
More information about syehan/forgotpassword-plugin
Files in syehan/forgotpassword-plugin
Package forgotpassword-plugin
Short Description Allows users who have forgotten their password to unlock, retrieve, or reset it.
License MIT
Homepage https://github.com/syehan/forgotpassword-plugin
Informations about the package forgotpassword-plugin
OctoberCMS Forgot Password
Use syehan/forgotpassword-plugin
. Allows users who have forgotten their password to unlock, retrieve, or reset it, usually by answering account security questions or sending them an e-mail. This plugin Currently verifying by OTP.
Installation
1 - You can install the package via composer:
Generating Secret Key Base32 for OTP
In this plugin, we have some command to generate base32 for your secret key, after that save into your config/syehan-otp-password.php
in otp_secret_key
key like this :
Usage
1 - You can send the forgot password email using this API:
Add body Param email
to deliver Forgot Password mail to your account.
2 - Or you can put this function into your function:
Usage (Verifying OTP)
1 - You can verify the OTP password into your function like this:
Usage (Change Password)
1 - by this plugin you can also change after verification by using this API:
Add body Param email
, password
and password_confirmation
to make sure that change password for your account succeed. Additionally you can verify OTP simultaneously while change password by adding body otp
request parameter.
or, you can put in any function like this :
lastly, you can able to change your own user model by changing user_model
in config/syehan-forgot-password.php
Config Forgot Password
If your have any setup for forgot password, please make sure to copy our config below and paste in config/syehan-forgot-password.php
.