{% extends "mails/base.html" %} {% block subject %}{{ service_name }} Account Recovery{% endblock %} {% block content %}
Hello{% if users | length == 1 %} {{ users[0].name }}{% endif %},
we have received an account recovery request for {{email}}. If you did not initiate this account recovery request, you can simply ignore this email.
{% if users | length == 1 %} {% with user = users[0] %} {% if user.authentication_methods | length == 0 %}There is no way to sign in to your {{ service_name }} account {{ user.name }} at this time. Please contact an administrator to regain access to your account.
{% elif user.authentication_methods | length == 1 %} {% with authentication_method = user.authentication_methods[0] %} {% if authentication_method.type.name.lower() == 'ldap' %}You can use the {{ ldap_name }} account {{authentication_method.login['login']}} to sign in to your {{ service_name }} account {{ user.name }}. To set a new password for your {{ ldap_name }} account, please contact an administrator.
{% elif authentication_method.type.name.lower() == 'email' %}You can use the email address {{authentication_method.login['login']}} to sign in to your {{ service_name }} account {{ user.name }}. To set a new password, please click here.
{% else %}You can use the username {{authentication_method.login['login']}} to sign in to your {{ service_name }} account {{ user.name }}. To set a new password, please click here.
{% endif %} {% endwith %} {% else %}Your {{ service_name }} account {{ user.name }} has the following authentication methods:
You have the following {{ service_name }} accounts:
{% for user in users %}