has 2fa
This block is part of the users,globals group and was last modified in core v14.0.3.
has 2fa
v14.0.3
Returns true if the current user has 2FA enabled and outputs the enabled methods.
| Pin | Pin | Type | Example |
|---|---|---|---|
| has 2FA |
condition |
||
| methods |
array |
has twofactorauth |
has twofactor |
Core Releases
v14.0.3 This block was introduced inv14.0.3, click here to see the release notes.
Back to
users,globals
Return to the main group to view all sub-groups
Back to current user
Return to the group to view all blocks within this group