diff --git a/default/Makefile.am b/default/Makefile.am index 0656b3e60..bde0400c0 100644 --- a/default/Makefile.am +++ b/default/Makefile.am @@ -314,7 +314,6 @@ nobase_default_DATA = \ web_tt2/lists.tt2 \ web_tt2/loginbanner.tt2 \ web_tt2/login_menu.tt2 \ - web_tt2/loginrequest.tt2 \ web_tt2/login.tt2 \ web_tt2/ls_templates.tt2 \ web_tt2/maintenance.tt2 \ diff --git a/default/mail_tt2/report.tt2 b/default/mail_tt2/report.tt2 index 781d1e7eb..c211a6acf 100644 --- a/default/mail_tt2/report.tt2 +++ b/default/mail_tt2/report.tt2 @@ -435,6 +435,9 @@ [%~ ELSIF report_entry == 'user_notified' ~%] [%|loc(report_param.notified_user)%]User %1 has been notified[%END%] +[%~ ELSIF report_entry == 'logout' ~%] + [%|loc%]You have logged out[%END%] + [%~ END ~%] [%################~%] diff --git a/default/web_tt2/including_lists.tt2 b/default/web_tt2/including_lists.tt2 index 4ab21d57c..91596237f 100644 --- a/default/web_tt2/including_lists.tt2 +++ b/default/web_tt2/including_lists.tt2 @@ -1,6 +1,6 @@

[%|loc(list)%]Lists including %1[%END%]

-[% IF user.email ~%] + [% IF which.size ~%]

[%|loc(list)%]Following lists are including list %1.[%END%]

@@ -48,9 +48,4 @@ [%~ END %] -[%~ ELSE ~%] -
- [% PROCESS loginrequest.tt2 %] -
-[%~ END %] diff --git a/default/web_tt2/login.tt2 b/default/web_tt2/login.tt2 index 0ec1b3ece..c83cf0f28 100644 --- a/default/web_tt2/login.tt2 +++ b/default/web_tt2/login.tt2 @@ -1,4 +1,139 @@ +[% IF back_to_mom ~%] +

+ [%|loc(user.email)%]You have logged in with email address %1[%END%] +

+[% ELSE ~%] -[%|loc(user.email)%]You have logged in with email address %1.[%END%]
+

+ + [% IF use_sso && use_passwd && only_passwd ~%] + [%|loc%]Login locally[%END%] + [%~ ELSE ~%] + [%|loc%]Login[%END%] + [%~ END %] +

+ +

+ [%|loc%]In order to perform a privileged operation (one that requires your email address), you need to login.[%END%] +

+ +[% IF use_sso && !only_passwd ~%] +
+
+
+
+ + + + + + [% IF sso_number == 1 ~%] + [% FOREACH server = sso ~%] + + + [%~ END %] + [%~ ELSE ~%] + + + + [%~ END %] +
+
+
+
+[% END # IF use_sso && !only_passwd ~%] + +[% IF use_passwd && use_sso && !only_passwd ~%] +
+

+ [%|loc%]Login locally[%END%] +

+[% END ~%] + +[% IF use_passwd ~%] +
+
+ + + + + + + + + +
+
+ + +
+
+
+
+ + +
+
+
+
+ +
+
+
+
+ + [% IF authentication_info_url || ! is_ldap_user ~%] +
+ [% END ~%] + + [% IF authentication_info_url ~%] + + [%~ ELSIF is_ldap_user ~%] + [%# No guides %] + [%~ ELSIF email ~%] + + [%~ ELSE ~%] + + [%~ END %] +[% END # IF use_passwd ~%] +[% END # IF back_to_mom ~%] diff --git a/default/web_tt2/login_menu.tt2 b/default/web_tt2/login_menu.tt2 index 077aaa64c..94dd85cf0 100644 --- a/default/web_tt2/login_menu.tt2 +++ b/default/web_tt2/login_menu.tt2 @@ -6,7 +6,6 @@ - [% IF sso_number == 1 ~%] @@ -43,16 +42,16 @@ [%~ END %] [% IF use_passwd == '1' ~%] - [% IF action == 'loginrequest'; SET class = 'active'; END ~%] + [% IF action == 'login'; SET class = 'active'; END ~%]
  • [% IF use_sso ~%] - + [%~ END %] - - [%~ END %] - [%~ ELSE ~%] - - - - [%~ END %] -
    -
    - - - - [% IF use_passwd == '1' AND use_sso ~%] -
    - [%~ END %] -[%~ END # IF use_sso && !login_method %] - -[% IF use_passwd == '1' ~%] - [% IF use_sso && !login_method ~%] -

    - [%|loc%]Login locally[%END%] -

    - [%~ END %] - -
    -
    - - - - - -
    -
    - - -
    -
    -
    -
    - - -
    -
    -
    -
    - -
    -
    -
    -
    - -
    - - -[%~ END # IF user_passwd == '1' %] - diff --git a/default/web_tt2/main.tt2 b/default/web_tt2/main.tt2 index eddf634de..3f8e2d7b7 100644 --- a/default/web_tt2/main.tt2 +++ b/default/web_tt2/main.tt2 @@ -28,7 +28,7 @@ [% END -%] - + [% top_menu = 1 %] @@ -39,7 +39,7 @@ [% IF nomenu %] [% PROCESS error.tt2 IF errors %]
    - [% PROCESS notice.tt2 IF notices %] + [% PROCESS notice.tt2 IF notices || last_login_epoch %] [% PROCESS "${action}.tt2" IF action %]
    [% ELSE %] @@ -77,7 +77,7 @@ [% PROCESS nav.tt2 %] [%~ END %] - [% PROCESS notice.tt2 IF notices %] + [% PROCESS notice.tt2 IF notices || last_login_epoch %] [% PROCESS "${action}.tt2" IF action %] [% PROCESS dumpvars.tt2 IF dumpvars == 'true'%] diff --git a/default/web_tt2/my.tt2 b/default/web_tt2/my.tt2 index 4432120f9..139189a94 100644 --- a/default/web_tt2/my.tt2 +++ b/default/web_tt2/my.tt2 @@ -1,6 +1,6 @@

    [%|loc%]My lists[%END%]

    -[% IF user.email %] +

    [%|loc%]You are subscribed to or managing the following lists.[%END%]

    @@ -62,9 +62,4 @@
    -[% ELSE %] -
    - [% PROCESS loginrequest.tt2 %] -
    -[% END %] diff --git a/default/web_tt2/notice.tt2 b/default/web_tt2/notice.tt2 index a54aabe4c..dbbe9b72b 100644 --- a/default/web_tt2/notice.tt2 +++ b/default/web_tt2/notice.tt2 @@ -1,9 +1,14 @@
    -[% IF last_login_date ~%] +[% IF last_login_epoch ~%]
    - - [%|loc(last_login_host,last_login_date)%]last login from %1 (%2)[%END%]
    + + [% last_login_date = BLOCK ~%] + [% last_login_epoch | optdesc('unixtime') %] + [%~ END ~%] +

    + [%|loc(last_login_host,last_login_date)%]last login from %1 (%2)[%END%] +

    [%~ END%] diff --git a/default/web_tt2/renewpasswd.tt2 b/default/web_tt2/renewpasswd.tt2 index fe1d38f82..9cc40ddff 100644 --- a/default/web_tt2/renewpasswd.tt2 +++ b/default/web_tt2/renewpasswd.tt2 @@ -2,16 +2,24 @@ [% SET SAFE_TO_REVEAL_EMAIL = 1 %] [% IF account_creation %] - [%|loc%]You requested an account creation on this list server.[%END%] +

    [%|loc%]You requested an account creation on this list server.[%END%]

    [% ELSIF login_error == 'wrong_password' %] -
    [%|loc%]Unable to continue: The username / password combination provided was incorrect.[%END%]
    + [%# Perhaps currently not used. ~%] +

    + [%|loc%]Login[%END%] +

    +

    [%|loc%]Unable to continue: The username / password combination provided was incorrect.[%END%]

    [% SET SAFE_TO_REVEAL_EMAIL = 0 %] [% ELSIF login_error == 'password_reset' %] - [%|loc%]Too many wrong passwords were submitted for this account. Your account has been blocked in order to protect you against attacks. You must renew your password in order to login.[%END%] +

    + [%|loc%]Login[%END%] +

    +

    [%|loc%]Too many wrong passwords were submitted for this account. Your account has been blocked in order to protect you against attacks. You must renew your password in order to login.[%END%]

    [% ELSIF login_error == 'missing_password' %] - [%|loc%]The password was incorrect. Please try again. Perhaps you have forgotten it?[%END%] + [%# Perhaps currently not used. ~%] +

    [%|loc%]The password was incorrect. Please try again. Perhaps you have forgotten it?[%END%]

    [% ELSIF login_error == 'ticket_sent' %] - [%|loc%]You will receive an email that will allow you to choose your password.[%END%] +

    [%|loc%]You will receive an email that will allow you to choose your password.[%END%]

    [% ELSE %] [% IF requestpasswd_context == 'firstpasswd' %]

    [%|loc%]Please enter your email address to begin the registration process.[%END%]

    @@ -20,19 +28,30 @@ [% END %] [% END %] [% IF SAFE_TO_REVEAL_EMAIL %] -
    -
    - - + +
    + + + + +
    +
    - + +
    +
    +
    +
    [% ELSE %] value="[%|loc%]Request new password[%END%]" /> [% END %] -
    - +
    + + + [% END %] diff --git a/default/web_tt2/sso_login.tt2 b/default/web_tt2/sso_login.tt2 index 26240210d..994a34b92 100644 --- a/default/web_tt2/sso_login.tt2 +++ b/default/web_tt2/sso_login.tt2 @@ -8,7 +8,6 @@
    - diff --git a/default/web_tt2/user_menu.tt2 b/default/web_tt2/user_menu.tt2 index 4b0814e3d..dc9baf7b0 100644 --- a/default/web_tt2/user_menu.tt2 +++ b/default/web_tt2/user_menu.tt2 @@ -62,13 +62,6 @@
  • [%~ END %] -[% IF last_login_date ~%] -
  • - [%|loc(last_login_host)%]last login from %1[%END%] -    ([% last_login_date %]) -
  • -[%~ END %] -
  • [%|loc%]My preferences[%END%]
  • @@ -80,11 +73,6 @@
    - [% IF referer ~%] - - [%~ ELSE ~%] - - [%~ END %]