[% META title = 'Login' %] [% # INCLUDE dumper.tt dump = env; # INCLUDE dumper.tt dump = c.cfg('settings'); # INCLUDE dumper.tt dump = can_bypass_terms; can_bypass_terms = 0; # simplified login form so not required IF user_profile; # INCLUDE dumper.tt dump = user_profile; username = env.SERVER_PORT.match(8000) AND NOT env.DB_SESSIONS ? user_profile.username : user_profile.first_name _ '.' _ user_profile.last_name; END; settings = c.cfg('settings'); centre = settings.item('_centre'); %] [% BLOCK logout_msg %]

[% IF username %] You are logged in as [% username %] [% ELSE %] You are already logged in [% END %] [ logout ]

[% END %] [% BLOCK submit; site.html.submit %] [% END %] [% BLOCK login_form %]
Username:
Password: [% IF ( c.authen.is_login_timeout OR can_bypass_terms ); PROCESS site/toggle.tt; # toggle needed for pwd reset PROCESS submit; END; %]
[% UNLESS ( c.authen.is_login_timeout OR can_bypass_terms ); PROCESS site/toggle.tt link = 'terms and conditions'; %]
I agree to the [% link %] of use: [% PROCESS submit %]
[% INCLUDE site/terms_and_conditions.tt %]
[% END %]
[% END %]

[% settings.app_abbr %] Data Systems

[% IF c.authen.username; INCLUDE logout_msg; # already logged in %] [% ELSIF settings.offline %]

Logins temporarily disabled during essential maintenance. Please try again in a few minutes ....

[% ELSE; # INCLUDE dumper.tt dump = c.query.param('destination'); # submitted by this form # INCLUDE dumper.tt dump = destination_url; # defined in LIMS::login() SET destination = c.query.param('destination') || destination_url; IF c.authen.is_login_timeout; INCLUDE logout_msg; %]
Idle timeout - please re-enter your login details:
[% ELSE; DEFAULT forgotten_pwd_class = 'itemhidden'; # overridden below msg = CAP_Messages.0; # if failure msg set in User::password_change() IF c.authen.login_attempts %]
Login failed (login attempt [% c.authen.login_attempts %]). Possible reasons:
- invalid username / password
- expired user account
If you have forgotten your account details, please reset your password below:
[% ELSE %]

Please enter your login details:

I've forgotten them, or account is inactive ....

[% END %] [% IF msg.class.match('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: [% IF two_stage_login # not using now have 1 stage login %] [% END %] [% site.html.submit %]

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

[% IF c.authen.login_attempts %]
Otherwise, you can apply for one here.
[% END %] [% END %] [% INCLUDE login_form %] [% # PROCESS dumper.tt dump = c.stash.REMOTE_ADDR # test Apache mod_rpaf working %] [% # PROCESS dumper.tt dump = CAP_Messages %] [% END %]
[% UNLESS c.authen.is_login_timeout %] [% # INCLUDE dumper.tt dump = limerick; IF limerick AND ( settings.offline OR devel_server ) %][% END %]

Application for [% settings.app_abbr %] user account: [% base_addr = url_base.replace(':8000', '') %] »

[% IF centre.match('leeds') %]

HMDS web-site: www.hmds.info

[% END %]

Contact: [% settings.service_email %] or [% settings.service_telno %] for assistance.

[% PROCESS 'resources/menu/request_forms.tt' class = 'itemshow' %]

Information on the use of cookies on this site.

[% INCLUDE site/cookies.tt %]
[% INCLUDE site/limerick.tt %]
[% END %]
powered by Titanium Comodo secure seal
[% # set 'active' textbox - contains cursor: active = c.authen.is_login_timeout ? 'authen_password' : 'authen_username'; PROCESS site/field_focus.tt form_name = 'login_form', field_name = active; %]