Skip to content
This repository has been archived by the owner on Jun 4, 2018. It is now read-only.
/ PasswordReset Public archive

Customizable frontend password reset for ProcessWire

Notifications You must be signed in to change notification settings

plauclair/PasswordReset

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Password Reset

A customizable frontend password reset module for ProcessWire.

Requirements

  • PHP >= 5.3.0
  • ProcessWire >= 2.6

Usage

Copy the password-reset.php file to your site's templates folder and make the changes appropriate for your website's structure.

This file has a few tips and does this, basically:

It runs the controller $modules->get('PasswordReset')->controller() then loads the scripts $modules->get('PasswordReset')->getScripts()

Configuration

Password Reset has different configuration options that you can access through Modules > Site > PasswordReset:

Validation field The field to match user registration against. It is important that you make sure these fields remain unique.

Instructions Optional text displayed under the reset form validation field on the first page of the reset process. This field has language support and, when the Language Support module is loaded, will display one instruction field for each language.

Email address to send link from The email address used to send reset links.

Name to use for the email address Name used to send reset links.

Required password length Minimum recommended length: 8.

Password instructions

Optional text displayed under the reset password field. This field has language support and, when the Language Support module is loaded, will display one instruction field for each language.

Public methods

getScripts() Returns the necessary JavaScript file url for use in <script> tags.

The scripts don't have any dependencies and must be loaded just before the closing body tag to make sure it works properly.

controller() Where the magic happens.

Make sure the controller is echo'ed somewhere. It will output the forms and any other markup to your pages.

Todo

  • Uninstall script
  • Probably some markup tweaking
  • Ajaxify (eventually)
  • Progress bar?

Versions

0.0.6 Current beta

  • Fixed missing translation string.

0.0.5

See changes

0.0.4

See changes

0.0.3

See changes

0.0.2

First working release

About

Customizable frontend password reset for ProcessWire

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published