---
title: "has 2fa · RUAL Documentation"
description: "Returns true if the current user has 2FA enabled and outputs the enabled methods."
canonical: https://docs.rual.nl/block-types/users,globals/user_has_twofactor
language: en
---

# has 2fa

This block is part of the [`users`](https://docs.rual.nl/block-types/users) group and was last modified in core [`v14.0.3`](https://docs.rual.nl/core-versions/140003).

Returns true if the current user has 2FA enabled and outputs the enabled methods.

- has 2FA `condition` `condition`

- methods `array`

| `has twofactorauth` |
| --- |
| `has twofactor` |

### Core Releases
