% macro authentication_settings(participant)

{{ _("Password") }}

% if request.qs.parse_boolean('password_mismatch', False)

{{ _("The submitted password is incorrect.") }}

% elif participant.has_password

{{ _( "If you need to change the password of your Liberapay account, you " "can do so below. To be secure, the password of your account should " "be randomly generated and not used anywhere else. We strongly " "recommend the use of a password manager." ) }}

% else

{{ _( "Setting a password allows you to log in directly, instead of waiting " "for a single-use link sent via email. However, we only recommend setting " "a password if you use a password manager, because in order to be secure " "the password should be randomly generated and not used anywhere else." ) }}

% endif
% if participant.has_password and user.session_type != 'em'
% endif
% if participant.has_password % endif

{{ _("Maximum length is {0}.", constants.PASSWORD_MAX_SIZE) }}

{{ _("2FA") }}

{{ _("Liberapay does not yet support two-factor authentication.") }}

% endmacro