[% INCLUDE 'header.html', bodyclass='authpage', title = loc('Sign in or create an account') %]

[% loc('Sign in') %]

[% IF oauth_need_email %]

[% loc('We need your email address, please give it below.') %]

[% END %] [% IF oauth_failure %]

[% loc('Sorry, we could not log you in. Please fill in the form below.') %]

[% END %]
[% IF NOT oauth_need_email AND (c.config.FACEBOOK_APP_ID OR c.config.TWITTER_KEY) %] [% IF c.config.FACEBOOK_APP_ID %]
[% END %] [% IF c.config.TWITTER_KEY %]
[% END %]
[% END %] [% IF email_error; # other keys include fqdn, mxcheck if you'd like to write a custom error message errors = { missing => loc('Please enter your email'), other => loc('Please check your email address is correct') }; loc_email_error = errors.$email_error || errors.other; END %] [% IF loc_email_error %]
[% loc_email_error %]
[% ELSIF sign_in_error %]
[% loc('There was a problem with your email/password combination. If you cannot remember your password, or do not have one, please fill in the ‘sign in by email’ section of the form.') %]
[% END %]

[% tprintf(loc("Do you have a %s password?", "%s is the site name"), site_name) %]

[% IF oauth_need_email %] [% INCLUDE form_sign_in_no %] [% INCLUDE form_sign_in_yes %] [% ELSE %] [% INCLUDE form_sign_in_yes %] [% INCLUDE form_sign_in_no %] [% END %]
[% IF NOT oauth_need_email AND (c.config.FACEBOOK_APP_ID OR c.config.TWITTER_KEY) %]
[% END %]
[% INCLUDE 'footer.html' %] [% BLOCK form_sign_in_yes %]
[% loc('Yes I have a password') %]

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

[% END %] [% BLOCK form_sign_in_no %]
[% loc('No let me sign in by email') %]

[% loc('Providing a name and password is optional, but doing so will allow you to more easily report problems, leave updates and manage your reports.') %]

[% END %]