ProcessForgotPassword class
Provides password reset capability for when users forget their password.
This accompanies the ProcessLogin module.
For more details about how Process modules work, please see: wire/core/Process.php
Click any linked item for full usage details and examples. Hookable methods are indicated with the icon. In addition to those shown below, the Process
class also inherits all the methods and properties of: Process, WireData and Wire.
Common
Name | Return | Summary | |
---|---|---|---|
Process Process Process | None | Clear all password reset requests | |
Process Process Process | Wire | Record error | |
Process Process Process | None | Check if login posted and attempt login, otherwise render the login form | |
Process Process Process | WireLog | Log a message for this class | |
Process Process Process | None | ||
Process Process Process | None | Wired to API |
For hooks
These methods are only useful for hooking and should not be called directly.
Name | Return | Summary | |
---|---|---|---|
Process Process Process | string | Render the password reset email body | |
Process Process Process | string | Render the error email body |
Properties
Name | Return | Summary | |
---|---|---|---|
Process | bool int | Allow passwords to be reset? | |
Process | array | Only allow password reset for these roles, optional. DEFAULT: [] | |
Process | bool int | Ask user for their email address rather than username? DEFAULT: false | |
Process | bool int | Be honest about whether account exists or not? More helpful but less secure when true. DEFAULT: false | |
Process | array | Block these roles, optional. DEFAULT: [] | |
Process | array | Extra field values to confirm values before accepting password change, optional. DEFAULT: ['email'] | |
Process | string | Send emails from this address | |
Process | string | Subject line for email that is sent DEFAULT: 'Password Reset Information' | |
Process | int | Seconds after which requests expire. DEFAULT: 3600 | |
Process | int | Max concurrent reset requests per IP address per hour or session. DEFAULT: 3 | |
Process | string | DB table | |
Process | bool int | Render errors inline (rather than as notices)? DEFAULT: false | |
Process | bool int | Log activity? DEFAULT: true | |
Process | string | WireMail module name to use or omit for system default. 3.0.148. |
Additional methods and properties
In addition to the methods and properties above, Process
API reference based on ProcessWire core version 3.0.251