[% IF forgotten; title = loc('Forgot password'); ELSIF expired_password; title = loc('Password expired'); ELSE; title = loc('Create an account'); END; INCLUDE 'header.html', bodyclass='authpage' %]

[% title %] [% IF NOT expired_password %] [% tprintf(loc('or sign in'), '/auth') %] [% END %]

[% IF forgotten %]

[% IF c.config.SMS_AUTHENTICATION %] [% loc('Sign in by email or text, providing a new password. When you click the link in your email or enter the SMS authentication code, your password will be updated.') %]

[% ELSE %] [% loc('Sign in by email instead, providing a new password. When you click the link in your email, your password will be updated.') %] [% END %]

[% ELSIF expired_password %]

[% loc('Sign out') %]

[% loc('Your password has expired, please create a new one below. When you click the link in your email, your password will be updated.') %]

[% END %]
[% IF NOT expired_password %] [% loc_username_error = INCLUDE 'auth/_username_error.html' default='email' %] [% IF c.config.SMS_AUTHENTICATION %] [% SET username_label = loc('Your email or mobile') %] [% ELSE %] [% SET username_label = loc('Your email') %] [% END %] [% IF loc_username_error %]
[% loc_username_error %]
[% END %] [% END %] [% IF field_errors.password_register %]

[% field_errors.password_register %]

[% END %]

[% tprintf(loc('Your password should include %d or more characters.'), c.cobrand.password_minimum_length) %]

[% INCLUDE 'footer.html' %]