Mercurial > hg > rlgwebd
comparison index-rlg.html @ 39:e8ac0e3d2614
RLG-Web: separate logging in and starting a game.
The user now logs in with a username and password, receiving a token
which is then used for any actions requiring authentication. Starting
a game is one such action. Games use a different set of id keys.
This allows users to supply their passwords once and then play any
number of successive games. Also, newly registered users do not need
to supply their passwords again.
author | John "Elwin" Edwards <elwin@sdf.org> |
---|---|
date | Thu, 07 Jun 2012 15:43:06 -0700 |
parents | 23a495e81725 |
children | 1bbd0e76ba92 |
comparison
equal
deleted
inserted
replaced
38:b06a14876645 | 39:e8ac0e3d2614 |
---|---|
83 <div class="rbutton">Font: | 83 <div class="rbutton">Font: |
84 <span onclick="textsize(false)">Smaller</span> | 84 <span onclick="textsize(false)">Smaller</span> |
85 <span onclick="textsize(true)">Larger</span> | 85 <span onclick="textsize(true)">Larger</span> |
86 </div> | 86 </div> |
87 </div> | 87 </div> |
88 <div class="modal" id="startgame"> | |
89 <form id="startform" action="/play" method="post"> | |
90 <div> | |
91 Choose game: <select name="game" id="input_game"> | |
92 <option label="Rogue V3" value="rogue3">Rogue V3</option> | |
93 <option label="Rogue V4" value="rogue4">Rogue V4</option> | |
94 <option label="Rogue V5" value="rogue5">Rogue V5</option> | |
95 <option label="Super-Rogue" value="srogue">Super-Rogue</option> | |
96 </select> | |
97 </div> | |
98 <div> | |
99 <input type="submit" value="Play" onclick="startgame(event)"> | |
100 </div> | |
101 </form> | |
102 </div> | |
88 <div class="modal" id="login"> | 103 <div class="modal" id="login"> |
89 <form id="loginform" action="/login" method="post"> | 104 <form id="loginform" action="/login" method="post"> |
90 <div> | 105 <div> |
91 Name: <input type="text" name="name" id="input_name"> | 106 Name: <input type="text" name="name" id="input_name"> |
92 </div> | 107 </div> |
93 <div> | 108 <div> |
94 Password: <input type="password" name="pw" id="input_pw"> | 109 Password: <input type="password" name="pw" id="input_pw"> |
95 </div> | 110 </div> |
96 <div> | 111 <div> |
97 Choose game: <select name="game" id="input_game"> | 112 <input type="submit" value="Log in" onclick="formlogin(event)"> |
98 <option label="Rogue V3" value="rogue3">Rogue V3</option> | |
99 <option label="Rogue V4" value="rogue4">Rogue V4</option> | |
100 <option label="Rogue V5" value="rogue5">Rogue V5</option> | |
101 <option label="Super-Rogue" value="srogue">Super-Rogue</option> | |
102 </select> | |
103 </div> | |
104 <div> | |
105 <input type="submit" value="Play" onclick="formlogin(event)"> | |
106 </div> | 113 </div> |
107 </form> | 114 </form> |
115 <div class="rbutton" onclick="setmode('register')">Register</div> | |
108 </div> | 116 </div> |
109 <div class="rbutton" onclick="setmode('register')">Register</div> | |
110 <div class="modal" id="register"> | 117 <div class="modal" id="register"> |
111 <form id="regform" action="/addacct" method="post"> | 118 <form id="regform" action="/addacct" method="post"> |
112 <div> | 119 <div> |
113 Name: <input type="text" name="name" id="regin_name"> | 120 Name: <input type="text" name="name" id="regin_name"> |
114 </div> | 121 </div> |