.. include:: /Includes.rst.txt
.. _typo3-fluid-security-ifauthenticated:
========================
security.ifAuthenticated
========================
This ViewHelper implements an ifAuthenticated/else condition for frontend users.
Examples
========
Basic usage
-----------
::
This is being shown whenever a FE user is logged in
Everything inside the :html:`` tag is being displayed if
current frontend user is authenticated.
IfAuthenticated / then / else
-----------------------------
::
This is being shown in case you have access.
This is being displayed in case you do not have access.
Everything inside the :html:`` tag is displayed if frontend user is authenticated.
Otherwise, everything inside the :html:`` tag is displayed.
Arguments
=========
.. _security.ifauthenticated_then:
then
----
:aspect:`DataType`
mixed
:aspect:`Required`
false
:aspect:`Description`
Value to be returned if the condition if met.
.. _security.ifauthenticated_else:
else
----
:aspect:`DataType`
mixed
:aspect:`Required`
false
:aspect:`Description`
Value to be returned if the condition if not met.