Login a user without requiring a password
Example
// login bob without knowing his password
$u = $session->forceLogin('bob');
Usage
$user = $session->forceLogin($user);
Arguments
Name | Type(s) | Description |
---|---|---|
user | string, User | Username or User object |
Return value
$session methods and properties
API reference based on ProcessWire core version 3.0.236