[% META title = 'Login' %] [% IF user_profile; PROCESS dumper.tt dump = user_profile; username = c.query.url.match(8080) ? user_profile.username : user_profile.first_name _ '.' _ user_profile.last_name; END; %] [% BLOCK logout_msg %]

You are already logged in[% IF username %] as [% username %][% END %]. You can logout here.

[% END %] [% IF c.authen.username; INCLUDE logout_msg; # already logged in %] [% ELSE %] [% SET destination = c.query.param('destination') || destination_url %] [% IF c.authen.login_attempts %]

Login failed (login attempt [% c.authen.login_attempts %])

Possible reasons:
- invalid username / password
- expired user account

If you have previously registered for a user account, please reset your password below. Otherwise, you can apply for one here.

[% ELSIF c.authen.is_login_timeout; INCLUDE logout_msg; %]
Idle timeout - please re-enter your login details:
[% ELSE %]
Please enter your login details:
[% END %] [% # PROCESS dumper.tt dump = c.stash.REMOTE_ADDR # test Apache mod_rpaf working %] [% # PROCESS dumper.tt dump = CAP_Messages %]
Username:
Password:
[% site.html.submit %]

[% PROCESS site/toggle.tt link = 'Forgotten my password' %]

[% link %]

[% DEFAULT forgotten_pwd_class = 'itemhidden' # overridden in block below %] [% # IF c.flash.has_key('email_address') # using MessageStack instead %] [% msg = CAP_Messages.0; # if failure msg set in User::password_change() IF msg.class == 'email_address'; # PROCESS dumper.tt dump = msg; email_address = msg.message; forgotten_pwd_class = 'itemvisible'; # override default so it shows %]

[% c.messages('login').email_not_found %]

[% END %]

Enter your email address: [% site.html.submit %]

[% UNLESS email_address %] Your password will be reset and a new one e-mailed to you. [% END %]

[% END %] [% IF limerick; import(limerick) %]

[% lines.join | html_line_break %]

[% END %]
powered by Titanium
[% PROCESS site/field_focus.tt form_name = 'login_form', field_name = 'authen_username' %]