Login to ProcessWire
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 | bool int | Whether or not email login is allowed (0|false=off, 1|true=Yes, 2=Yes or name also allowed) | |
Process | bool | Whether the ProcessForgotPassword module is installed. | |
Process | string | Field name used for email login (when enabled). | |
Process Process Process | string | Check if login posted and attempt login, otherwise render the login form | |
Process Process Process | string | Log the user out | |
Process Process Process | array | Get validated/sanitized variables in the query string for not logged-in user to retain after login | |
Process Process Process | null Tfa | Get Tfa instance or null if not applicable | |
Process Process Process | InputfieldFieldset | Get Inputfields to configure Tfa settings | |
Process Process Process | string | Get or set named label text | |
Process Process Process | bool | Perform login and redirect on success | |
Process Process Process | string | Get or set custom markup | |
Process Process Process | $this | Set URL to redirect to after login success | |
Process Process Process | $this | Set URL to redirect to after logout success | |
Process | array | Auto-enable for these role IDs, or blank for all roles. Applies only if $tfaAutoType selected (default=[]) | |
Process | string | Auto-enable type, aka module name (default='') | |
Process | array | Role IDs where admin prompts/recommends them to enable TFA. | |
Process | int | Allow user to remember their browser and bypass TFA for this many days (-1=no limit, 0=disabled) | |
Process | array | Means by which to fingerprint user’s browser | |
Process Process Process | bool int | Use login by email? |
For hooks
These methods are only useful for hooking and should not be called directly.
Name | Return | Summary | |
---|---|---|---|
Process Process Process | (nothing) | ||
Process Process Process | string | ||
Process Process Process | (nothing) | ||
Process Process Process | string | ||
Process Process Process | (nothing) | ||
Process Process Process | InputfieldForm | ||
Process Process Process | string | ||
Process Process Process | array | Get array of links to display under login form | |
Process Process Process | (nothing) | Hook called right before a login is attempted | |
Process Process Process | (nothing) | Hook called immediately after a login was attempted | |
Process Process Process | (nothing) | ||
Process Process Process | (nothing) | Hook called immediately before the login form in processed | |
Process Process Process | (nothing) | Hook called immediately after login form processed and user name/pass identified as present | |
Process Process Process | (nothing) | ||
Process Process Process | string | ||
Process Process Process | string |
Additional methods and properties
In addition to the methods and properties above, Process
API reference based on ProcessWire core version 3.0.236