Get the TFA module for given user or current session
Usage
// basic usage
$tfa = $tfa->getModule();
// usage with all arguments
$tfa = $tfa->getModule(User $user = null);
Arguments
Name | Type(s) | Description |
---|---|---|
user (optional) | User | Optionally specify user |
Return value
Tfa
null
API reference based on ProcessWire core version 3.0.236