has 2fa
This block is part of the users 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.
Out pins 2
- has 2FA
condition - methods
array
True when the current session user has at least one two-factor method registered, with the method names (up to 10) on the methods output. False with an empty methods array when nobody is logged in or no methods exist.
has twofactorauth |
has twofactor |
Version history
Introduced in v14.0.3.
Back to
users 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 