0
|
1 <macro name="forgot_password_page" requires="servlet">
|
|
2 <n.set_var name="error" value="[n.false/]" />
|
|
3 <n.if.is_submitted_form>
|
|
4 <then.if.exists_user_for_email.email_field.value>
|
|
5 <then>
|
|
6 <n.set_local_user.get_user_from_email email="[n.email_field.value/]" />
|
|
7 <n.if.local_user.is_registered>
|
|
8 <then>
|
|
9 <n.local_user.send_password_mail/>
|
|
10 <n.password_mail_sent_page/>
|
|
11 </then>
|
|
12 <else.unregistered_user_forgot_password_page/>
|
|
13 </n.if.local_user.is_registered>
|
|
14 <n.exit/>
|
|
15 </then>
|
|
16 <else.set_var name="error" value="[n.true/]" />
|
|
17 </then.if.exists_user_for_email.email_field.value>
|
|
18 </n.if.is_submitted_form>
|
|
19 <n.html>
|
|
20 <head>
|
|
21 <meta name="robots" content="noindex,nofollow"/>
|
|
22 <n.title.><t>Forgot Password?</t></n.title.>
|
|
23 <style type="text/css">
|
|
24 div.field-title { margin-top: 0; }
|
|
25 </style>
|
|
26 </head>
|
|
27 <body>
|
|
28 <h1><t>Forgot Password?</t></h1>
|
|
29
|
|
30 <p><t>Please enter the email address you used to register and click on "Submit".
|
|
31 We will email you a link to reset your password.</t></p>
|
|
32 <p>
|
|
33 <n.if.var name="error">
|
|
34 <then.format_error message="[t]No registered user found with this email.[/t]" prompt="[t]Please enter a correct email address and try again.[/t]" />
|
|
35 </n.if.var>
|
|
36 <n.form.>
|
|
37 <div class="second-font field-title"><t>Email</t></div>
|
|
38 <n.email_field.input size="45" />
|
|
39 <input type="submit" value="[t]Submit[/t]" />
|
|
40 </n.form.>
|
|
41 </p>
|
|
42 <n.show_email_warning/>
|
|
43 </body>
|
|
44 </n.html>
|
|
45 </macro>
|
|
46
|
|
47 <macro name="send_password_mail" requires="user" unindent="true">
|
|
48 <n.set_local_user.this_user />
|
|
49 <n.block.>
|
|
50 <n.new_email.>
|
|
51 <n.send>
|
|
52 <to.local_user.user_email/>
|
|
53 <subject><t>Reset your password / <t.location.root_node.subject/></t></subject>
|
|
54 <text_part>
|
|
55 <t>Dear user,</t>
|
|
56
|
|
57 <t>We received a request to reset your password in <t.location.root_node.subject/>.</t>
|
|
58
|
|
59 <t>If you want to reset your password, click on the link below (or copy and paste the URL into your browser):</t>
|
|
60 <n.base_url/><n.local_user.reset_password_path email="[n.local_user.user_email/]" q="[n.local_user.resetcode/]" />
|
|
61
|
|
62 <t>If you don't want to reset your password, please ignore this message. Your password will not be reset.</t>
|
|
63
|
|
64 <n.root_node.subject/>
|
|
65 <n.base_url/>/
|
|
66 </text_part>
|
|
67 <aol_part>
|
|
68 <t>Dear user,</t>
|
|
69
|
|
70 <t>We received a request to reset your password in <t.location.root_node.subject/>.</t>
|
|
71
|
|
72 <t>If you want to reset your password, click on the link below (or copy and paste the URL into your browser):</t>
|
|
73 <n.base_url/><n.local_user.reset_password_path email="[n.local_user.user_email/]" q="[n.local_user.resetcode/]" />
|
|
74
|
|
75 <t>If you don't want to reset your password, please ignore this message. Your password will not be reset.</t>
|
|
76
|
|
77 <n.root_node.subject/>
|
|
78 <n.base_url/>/
|
|
79 </aol_part>
|
|
80 </n.send>
|
|
81 </n.new_email.>
|
|
82 </n.block.>
|
|
83 </macro>
|
|
84
|
|
85 <macro name="password_mail_sent_page" requires="servlet">
|
|
86 <n.html>
|
|
87 <head>
|
|
88 <n.title.><t>Password Reset Sent</t></n.title.>
|
|
89 </head>
|
|
90 <body>
|
|
91 <h1><t>Password Reset Sent</t></h1>
|
|
92 <p>
|
|
93 <t>We have sent you a link to reset your password. Please check your email now.
|
|
94 If you don't receive the instructions in a few minutes, check your spam folder
|
|
95 or try to resend the request.</t>
|
|
96 </p>
|
|
97 </body>
|
|
98 </n.html>
|
|
99 </macro>
|
|
100
|
|
101 <macro name="unregistered_user_forgot_password_page" requires="servlet">
|
|
102 <n.html>
|
|
103 <head>
|
|
104 <n.title.><t>Forgot Password?</t></n.title.>
|
|
105 </head>
|
|
106 <body>
|
|
107 <h1><t>Forgot Password?</t></h1>
|
|
108
|
|
109 <p>
|
|
110 <t>There is an unregistered user account associated with the email address <t.email.bold.email_field.value/>.</t>
|
|
111 <t>If this email address is yours, you should <n.register_link.>register</n.register_link.> using this same address.
|
|
112 After registration, you will own this user account.</t>
|
|
113 </p>
|
|
114 <p>
|
|
115 <t>For more info, see: <t.info.help.userid.link/></t>
|
|
116 </p>
|
|
117 </body>
|
|
118 </n.html>
|
|
119 </macro>
|
|
120
|
|
121 <macro name="forgot_password_path">
|
|
122 <n.encode_url.>
|
|
123 /template/NamlServlet.jtp?macro=forgot_password_page
|
|
124 </n.encode_url.>
|
|
125 </macro>
|
|
126
|