1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
3 This file is part of DisOrder.
4 Copyright (C) 2007, 2008 Richard Kettlewell
6 This program is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>.
25 <h1>@label{login.title}</h1>
28 {@# Error reporting from some earlier operation
30 <p class=error>@label{error.@error}</p>
34 {@# Some action succeeded
35 <div class=loginstatus>
36 <p>@label{login.@status}</p>
39 @if{@eq{@user}{guest}}
40 {@# Guest user, allow login and registration
41 <h2>Existing users</h2>
43 <p>If you have a username, use this form to log in.</p>
45 <form class=login action="@url" method=POST
46 enctype="multipart/form-data" accept-charset=utf-8>
49 <td>@label{login.username}</td>
51 <input class=username name=username type=text size=32
52 value="@argq{username}">
56 <td>@label{login.password}</td>
58 <input class=password name=password type=password value=""
64 @submit{@label{login.login}}
68 <input name=action type=hidden value=login>
69 <input name=back type=hidden value="@argq{back}">
72 <p>If you've forgotten your password, use this form to request an
73 email reminder. A reminder can only be sent if you registered with
74 your email address, and if a reminder has been sent too recently
75 then it won't be possible to send one.</p>
77 <form class=reminder action="@url" method=POST
78 enctype="multipart/form-data" accept-charset=utf-8>
81 <td>@label{login.username}</td>
83 <input class=username name=username type=text size=32
84 value="@argq{username}">
89 @submit{@label{login.reminder}}
93 <input name=action type=hidden value=reminder>
99 <p>If you do not have a login enter a username, a password and your
100 email address here. You will be sent an email containing a URL,
101 which you must visit to activate your login before you can use
104 <form class=register action="@url" method=POST
105 enctype="multipart/form-data" accept-charset=utf-8>
106 <table class=register>
108 <td>@label{login.username}</td>
110 <input class=username name=username type=text size=32
113 <td class=extra>@label{login.registerusernameextra}</td>
116 <td>@label{login.email}</td>
118 <input class=email name=email type=text size=32
121 <td class=extra>@label{login.registeremailextra}</td>
124 <td>@label{login.password1}</td>
126 <input class=password name=password1 type=password size=32
129 <td class=extra>@label{login.registerpassword1extra}</td>
132 <td>@label{login.password2}</td>
134 <input class=password name=password2 type=password size=32
137 <td class=extra>@label{login.registerpassword2extra}</td>
141 @submit{@label{login.register}}
145 <input name=action type=hidden value=register>
147 }{@# not the guest user, allow change of details and logout
149 <h2>Logged in as @user</h2>
151 <form class=logout action="@url" method=POST
152 enctype="multipart/form-data" accept-charset=utf-8>
154 @submit{@label{login.logout}}
156 <input name=action type=hidden value=logout>
159 <p>Use this form to change your email address and/or password.</p>
161 <form class=edituser action="@url" method=POST
162 enctype="multipart/form-data" accept-charset=utf-8>
163 <table class=edituser>
165 <td>@label{login.email}</td>
167 <input class=email name=email type=text size=32
168 value="@userinfo{email}">
170 <td class=extra>@label{login.edituseremailextra}</td>
173 <td>@label{login.newpassword}</td>
175 <input class=password name=changepassword1 type=password size=32
178 <td class=extra>@label{login.edituserpassword1extra}</td>
181 <td>@label{login.newpassword}</td>
183 <input class=password name=changepassword2 type=password size=32
186 <td class=extra>@label{login.edituserpassword2extra}</td>
190 @submit{@label{login.edituser}}
194 <input name=action type=hidden value=edituser>
205 sgml-always-quote-attributes:nil