chiark / gitweb /
DisOrder 3.0
[disorder] / templates / login.html
index 21c7ddf05e947970591fb087258495005af06354..723b6afcb513f147bd84f8a911c1e3958ca41691 100644 (file)
@@ -1,7 +1,7 @@
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
 <!--
 This file is part of DisOrder.
-Copyright (C) 2007 Richard Kettlewell
+Copyright (C) 2007, 2008 Richard Kettlewell
 
 This program is free software; you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
@@ -25,7 +25,7 @@ USA
  </head>
  <body>
 @include{topbar}@
-   <h1 class=title>@label:login.title@</h1>
+   <h1>@label:login.title@</h1>
 
    @if{@ne{@label:error@}{error}@}{
    @#{error reporting from some earlier operation}@
@@ -37,7 +37,7 @@ USA
    @if{@ne{@label:status@}{status}@}{
    @#{some action succeeded}@
    <div class=loginstatus>
-     <p class=loginstatus>@label{login.@label:status@}@</p>
+     <p>@label{login.@label:status@}@</p>
    </div>
    }@
 
@@ -65,7 +65,7 @@ USA
          </td>
        </tr>
        <tr>
-         <td>
+         <td colspan=2>
            <button class=login name=button type=submit>
              @label:login.login@
            </button>
@@ -73,10 +73,35 @@ USA
        </tr>
      </table>
      <input name=action type=hidden value=login>
-     <input name=nonce type=hidden value="@nonce@">
      <input name=back type=hidden value="@arg:back@">
    </form>
 
+   <p>If you've forgotten your password, use this form to request an
+   email reminder.  A reminder can only be sent if you registered with
+   your email address, and if a reminder has been sent too recently
+   then it won't be possible to send one.</p>
+
+   <form class=reminder action="@url@" method=POST
+         enctype="multipart/form-data" accept-charset=utf-8>
+     <table class=login>
+       <tr>
+         <td>@label:login.username@</td>
+         <td>
+           <input class=username name=username type=text size=32
+                 value="@arg:username@">
+         </td>
+       </tr>
+       <tr>
+         <td colspan=2>
+           <button class=login name=button type=submit>
+             @label:login.reminder@
+           </button>
+         </td>
+       </tr>
+     </table>
+     <input name=action type=hidden value=reminder>
+   </form>
+
    @right{register}{
    <h2>New Users</h2>
 
@@ -121,7 +146,7 @@ USA
          <td class=extra>@label:login.registerpassword2extra@</td>
        </tr>
        <tr>
-         <td>
+         <td colspan=3>
            <button class=register name=button>
              @label:login.register@
            </button>
@@ -129,7 +154,6 @@ USA
        </tr>
      </table>
      <input name=action type=hidden value=register>
-     <input name=nonce type=hidden value="@nonce@">
    </form>}@
    }{
    @#{not the guest user, allow change of details and logout}@
@@ -144,7 +168,6 @@ USA
        </button>
      </div>
      <input name=action type=hidden value=logout>
-     <input name=nonce type=hidden value="@nonce@">
    </form>
 
    <p>Use this form to change your email address and/or password.</p>
@@ -177,7 +200,7 @@ USA
          <td class=extra>@label:login.edituserpassword2extra@</td>
        </tr>
        <tr>
-         <td>
+         <td colspan=3>
            <button class=edituser name=submit type=submit>
              @label:login.edituser@
            </button>
@@ -185,7 +208,6 @@ USA
        </tr>
      </table>
      <input name=action type=hidden value=edituser>
-     <input name=nonce type=hidden value="@nonce@">
    </form>
 
    }@