Skip to content

Error tags ​

auth_error ​

With the auth_error tag you can print the error of the last login, connect or disconnect on your screen.

{exp:reinos_sso:auth_error}

The tag returns an error code (see below) or the error message of the provider. You can compare the code in a conditional:

{if "{exp:reinos_sso:auth_error}" == "email_already_registered"}
    You already have an account, log in with your password.
{/if}

translate ​

Available from v6.0.0

With translate="yes" the error codes are shown as text. The texts are in the language file of the module (reinos_sso_error_{code}).

{exp:reinos_sso:auth_error translate="yes"}

Error codes ​

CodeWhen
email_already_registeredthe email of the provider belongs to an existing member and Allow social login to merge with non social accounts is off
email_not_verifiedmerging is on, but the provider did not verify the email address (v6.0.0)
only_existing_accounts_allowedthere is no member with this email and Allow new SSO accounts is off
account_bannedthe member is banned (v6.0.0)
account_pendingthe member is not activated yet (v6.0.0)
connect_requires_logina connect link was used while nobody is logged in (v6.0.0)
invalid_disconnect_linka disconnect link without a valid CSRF token (v6.0.0)

login_error ​

The deprecated name of the auth_error tag.

{exp:reinos_sso:login_error}

email_error ​

With the email_error tag you can print the email error on your screen (if you collect a email if needed)

{exp:reinos_sso:email_error}