[319] | 1 | <metal:html> |
---|
| 2 | |
---|
| 3 | <metal:body use-macro="here/main_template/macros/master"> |
---|
| 4 | |
---|
| 5 | <metal:main fill-slot="main" |
---|
| 6 | tal:define="p_props here/portal_properties;"> |
---|
| 7 | <metal:skin tal:condition="exists: here/portal_skins | nothing"> |
---|
| 8 | <div tal:condition="here/portal_skins/updateSkinCookie | nothing" |
---|
| 9 | tal:define="dummy here/setupCurrentSkin"> |
---|
| 10 | </div> |
---|
| 11 | </metal:skin> |
---|
| 12 | <tal:block condition="isAnon"> |
---|
| 13 | <tal:block define="dummy python:request.RESPONSE.expireCookie('__ac',path='/')" /> |
---|
| 14 | <h1 i18n:translate="heading_login_failure">Login failure</h1> |
---|
| 15 | <p> |
---|
| 16 | <span i18n:translate="description_login_failure"> |
---|
| 17 | You are not currently logged in. Your username and or password may be |
---|
| 18 | incorrect. Your browser may also not be configured to accept HTTP |
---|
| 19 | cookies. If you need help please contact |
---|
| 20 | </span> |
---|
| 21 | <a href="mailto:admin@here.com" title="Email Admin" |
---|
| 22 | tal:attributes="href string:mailto:${p_props/email_from_address}" |
---|
| 23 | tal:content="p_props/email_from_address">Email Admin</a>. |
---|
| 24 | </p> |
---|
| 25 | <p i18n:translate=""> |
---|
| 26 | help_password_forgotten |
---|
| 27 | <tal:block i18n:name="link_password_forgotten" |
---|
| 28 | replace="string:${base_url}account_lost_password_form"/> |
---|
| 29 | </p> |
---|
| 30 | <p> |
---|
| 31 | or <a href="" tal:attributes="href string:${base_url}check_admission">check your admission status</a> |
---|
| 32 | </p> |
---|
| 33 | </tal:block><!-- isAnon --> |
---|
| 34 | |
---|
| 35 | <tal:block condition="not: isAnon" |
---|
| 36 | define="first_time python:(member.getProperty('login_time', None) == |
---|
| 37 | here.ZopeTime('2000/01/01')); |
---|
| 38 | dum_home mtool/createMemberArea" |
---|
| 39 | > |
---|
[350] | 40 | <span tal:condition="nothing" |
---|
| 41 | tal:define="dummy python: context.process_waeup_login(member=member,sc_pin=request.get('sc_pin',None))" /> |
---|
[319] | 42 | <tal:block condition="first_time"> |
---|
| 43 | <div tal:define="now here/ZopeTime; |
---|
| 44 | dum_reg python:member.setProperties(last_login_time=now, |
---|
| 45 | login_time=now)" /> |
---|
| 46 | |
---|
| 47 | <h1>Welcome!</h1> |
---|
| 48 | <p>This is the first time that you've logged in to <span |
---|
| 49 | replace="p_props/title">Here</span>. Before you start exploring you need |
---|
| 50 | to change your original password. This will ensure that the password we |
---|
| 51 | sent you via email cannot be used in a malicious manner.</p> |
---|
| 52 | |
---|
| 53 | <p>Please use the form below to change your password.</p> |
---|
| 54 | |
---|
| 55 | <form action="change_password" method="post" |
---|
| 56 | tal:attributes="action string:${base_url}change_password"> |
---|
| 57 | <input type="hidden" name="user" value="" |
---|
| 58 | tal:attributes="value member" /> |
---|
| 59 | <input type="hidden" name="domains:tokens" value="" /> |
---|
| 60 | <input type="hidden" name="redirect" value="" |
---|
| 61 | tal:attributes="value base_url" /> |
---|
| 62 | |
---|
| 63 | <table border="1" width="100%" cellspacing="1" cellpadding="1"> |
---|
| 64 | |
---|
| 65 | <tr valign="top" align="left"> |
---|
| 66 | <th>Username</th> |
---|
| 67 | <td><span tal:replace="member">You</span></td> |
---|
| 68 | </tr> |
---|
| 69 | |
---|
| 70 | <tr valign="top" align="left"> |
---|
| 71 | <th>New password</th> |
---|
| 72 | <td><input type="password" name="password" /></td> |
---|
| 73 | </tr> |
---|
| 74 | |
---|
| 75 | <tr valign="top" align="left"> |
---|
| 76 | <th>Confirm new password</th> |
---|
| 77 | <td><input type="password" name="confirm" /></td> |
---|
| 78 | </tr> |
---|
| 79 | |
---|
| 80 | <tr> |
---|
| 81 | <td></td> |
---|
| 82 | <td> |
---|
| 83 | <input type="submit" class="standalone" value="Change password" /> |
---|
| 84 | </td> |
---|
| 85 | </tr> |
---|
| 86 | |
---|
| 87 | </table> |
---|
| 88 | |
---|
| 89 | </form> |
---|
| 90 | |
---|
| 91 | </tal:block><!-- first_time --> |
---|
| 92 | |
---|
| 93 | <tal:block condition="not: first_time"> |
---|
| 94 | |
---|
| 95 | <tal:block define="d_reg python:member.setProperties( |
---|
| 96 | last_login_time=member.getProperty('login_time', None)); |
---|
| 97 | ereg python:member.setProperties( |
---|
| 98 | login_time=here.ZopeTime()); |
---|
| 99 | "/> |
---|
| 100 | |
---|
| 101 | <div tal:condition="request/came_from | nothing "> |
---|
| 102 | <div tal:define="came_from python:request.get('came_from'); |
---|
| 103 | response request/RESPONSE; |
---|
| 104 | dredirect python: response.redirect(came_from); |
---|
| 105 | " /> |
---|
| 106 | </div> |
---|
| 107 | |
---|
| 108 | <h1 i18n:translate="heading_login_success">Login success</h1> |
---|
| 109 | <p i18n:translate="description_login_success"> |
---|
| 110 | Welcome. You are currently logged in. |
---|
| 111 | </p> |
---|
| 112 | |
---|
| 113 | </tal:block><!-- not first_time --> |
---|
| 114 | |
---|
| 115 | </tal:block><!-- not isAnon --> |
---|
| 116 | |
---|
| 117 | </metal:main> |
---|
| 118 | |
---|
| 119 | </metal:body> |
---|
| 120 | |
---|
| 121 | </metal:html> |
---|