RLG-Web: add user registration

Update the server and client sides of RLG-Web to make use of the new
registration feature of sqlickrypt.
This commit is contained in:
John "Elwin" Edwards 2012-05-22 20:54:33 -07:00
parent dfbd2a71d0
commit e36f058daf
4 changed files with 130 additions and 4 deletions

View file

@ -14,6 +14,7 @@
<img src="/bell.png" alt="bell" id="bell">
</div>
<div id="termwrap">TERM</div>
<div class="modal" id="keyboard">
<div class="keyrow">
<div class="key" onclick="vkey('`')">`</div>
<div class="key" onclick="vkey('1')">1</div>
@ -82,21 +83,46 @@
<span onclick="textsize(false)">Smaller</span>
<span onclick="textsize(true)">Larger</span>
</div>
<div>
</div>
<div class="modal" id="login">
<form id="loginform" action="/login" method="post">
<div>
Name: <input type="text" name="name" id="input_name">
</div>
<div>
Password: <input type="password" name="pw" id="input_pw">
</div>
<div>
Choose game: <select name="game" id="input_game">
<option label="Rogue V3" value="rogue3">Rogue V3</option>
<option label="Rogue V4" value="rogue4">Rogue V4</option>
<option label="Rogue V5" value="rogue5">Rogue V5</option>
<option label="Super-Rogue" value="srogue">Super-Rogue</option>
</select>
</div>
<div>
<input type="submit" value="Play" onclick="formlogin(event)">
</div>
</form>
</div>
<div class="rbutton" onclick="setmode(&quot;register&quot;)">Register</div>
<div class="modal" id="register">
<form id="regform" action="/addacct" method="post">
<div>
Name: <input type="text" name="name" id="regin_name">
</div>
<div>
Password: <input type="password" name="pw" id="regin_pw">
</div>
<div>
E-mail (optional): <input type="text" name="email" id="regin_email">
</div>
<div>
<input type="submit" value="Sign up" onclick="formreg(event)">
<input type="reset" value="Cancel" onclick="setmode(&quot;login&quot, event)">
</div>
</form>
</div>
<div id="debug">
<p>Debugging Output</p>
</div>