Appearance
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
| Code | When |
|---|---|
email_already_registered | the email of the provider belongs to an existing member and Allow social login to merge with non social accounts is off |
email_not_verified | merging is on, but the provider did not verify the email address (v6.0.0) |
only_existing_accounts_allowed | there is no member with this email and Allow new SSO accounts is off |
account_banned | the member is banned (v6.0.0) |
account_pending | the member is not activated yet (v6.0.0) |
connect_requires_login | a connect link was used while nobody is logged in (v6.0.0) |
invalid_disconnect_link | a 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}