|
58 | 58 | <script language="javascript" type="text/javascript" src="./js/lib/pidCrypt/sha512.js"></script>
|
59 | 59 | <script language="javascript" type="text/javascript" src="./js/generic_lib.js"></script>
|
60 | 60 | <title>JoM - Authentication</title>
|
61 |
| - <style> |
62 |
| - .alert { background-color: rgba(252, 248, 227, 0.8); } |
63 |
| - </style> |
64 | 61 | <script>
|
65 | 62 | $(document).ready(function() {
|
66 | 63 | $('#jom_logo').css('opacity', 0);
|
@@ -151,7 +148,7 @@ function check_login(el) {
|
151 | 148 | // ajax call to check login and
|
152 | 149 | $.ajax({
|
153 | 150 | url : "./ard.php",
|
154 |
| - type : "GET", |
| 151 | + type : "POST", |
155 | 152 | dataType : 'json',
|
156 | 153 | data : 'd=usr&r=lin&u=' + username + '&p=' + hashedpass + '&n=' + nonce + '&t=' + timestamp + '&c=login',
|
157 | 154 | success : function(data) {
|
@@ -199,65 +196,48 @@ function check_login(el) {
|
199 | 196 | </div>
|
200 | 197 | <br>
|
201 | 198 | <br>
|
202 |
| - <div class="row" style="position: absolute; top: 128px;;"> |
203 |
| - <div class="span6 offset3" style="padding: 0 15px 0 15px; display: none" id="jom_message_container"> |
| 199 | + <div style="margin: 0 auto; width: 450px;"> |
| 200 | + <div style="position: absolute; top: 122px; width: 420px; padding: 0 15px 0 15px; display: none" id="jom_message_container"> |
204 | 201 | <div class="alert text-center" style="box-shadow: 2px 2px 8px #AAA;">
|
205 | 202 | <button type="button" class="close" data-dismiss="alert">×</button>
|
206 | 203 | <div id="jom_message"></div>
|
207 | 204 | </div>
|
208 | 205 | </div>
|
209 | 206 | </div>
|
210 |
| - <div class="row" id="jom_loginpanel"> |
211 |
| - <div class="span4 offset4" style="border: 1px solid #AFAFAF; border-radius: 10px; box-shadow: 1px 1px 2px #888; background-color: white; padding: 15px;"> |
212 |
| - <div class="row"> |
213 |
| - <div class="span1"> |
214 |
| - <img src="./img/user_info.png" alt="Authentication icon" title="Authentication"> |
215 |
| - </div> |
216 |
| - <div class="span3 text-center"> |
217 |
| - <h2>Authentication</h2> |
218 |
| - </div> |
| 207 | + |
| 208 | + <div class="login-form" id="jom_loginpanel"> |
| 209 | + <div style="border-bottom: 1px solid lightgray;"> |
| 210 | + <h2><img src="./img/user_info.png" alt="Authentication icon" title="Authentication" style="vertical-align: text-bottom;"> Authentication</h2> |
| 211 | + </div> |
| 212 | + <br> |
| 213 | + <div class="text-center"> |
| 214 | + <div class="input-prepend"> |
| 215 | + <span class="add-on"><i class="icon-user"></i></span> |
| 216 | + <input id="user" type="text" class="form-control" placeholder="Username or email"> |
219 | 217 | </div>
|
220 |
| - <div class="row"> |
221 |
| - <div class="span4"> |
222 |
| - <legend style="margin-bottom: 5px"></legend> |
223 |
| - <div style="padding: 0px 15px 0 55px;"> |
224 |
| - <label style="padding-top: 15px;">User name or email</label> |
225 |
| - <div class="input-prepend"> |
226 |
| - <span class="add-on"><i class="icon-user"></i></span> |
227 |
| - <input id="user" type="text" style="font-size: 18px; font-weight: bold;"> |
228 |
| - </div> |
229 |
| - <label>Password</label> |
230 |
| - <div class="input-prepend"> |
231 |
| - <span class="add-on"><i class="icon-key"></i></span> |
232 |
| - <input id="pass" type="password" style="font-size: 18px; font-weight: bold;"> |
233 |
| - </div> |
234 |
| - <?php echo generate_html_input_form_nonces( '/users/login', 0, session_id(), $config['SALT'], $config['HASH_ALG'] ); ?> |
235 |
| - </div> |
236 |
| - </div> |
| 218 | + <div class="input-prepend"> |
| 219 | + <span class="add-on"><i class="icon-key"></i></span> |
| 220 | + <input id="pass" type="password" class="form-control" placeholder="password"> |
237 | 221 | </div>
|
238 |
| - <div class="row" style="margin-top: 5px;"> |
239 |
| - <div class="span2 offset1 text-center"> |
240 |
| - <button id="submit" type="submit" class="btn" onclick='javascript: check_login(this);'><i class="icon-signin"></i> Enter</button> |
241 |
| - </div> |
| 222 | + <?php echo generate_html_input_form_nonces( '/users/login', 0, session_id(), $config['SALT'], $config['HASH_ALG'] ); ?> |
| 223 | + <div> |
| 224 | + <button id="submit" type="submit" class="btn" onclick='javascript: check_login(this);'><i class="icon-signin"></i> Enter</button> |
242 | 225 | </div>
|
243 |
| - <br> |
244 |
| - <div class="row"> |
245 |
| - <div class="span4" id="jom_infopanelctrl" style="cursor: pointer;"> |
246 |
| - <i class="icon-info-sign"></i> show details...</div> |
| 226 | + <div class="text-left" id="jom_infopanelctrl" style="cursor: pointer;"> |
| 227 | + <i class="icon-info-sign"></i> show details... |
247 | 228 | </div>
|
248 |
| - <div class="row" id="jom_infopanel"> |
249 |
| - <div class="span4"> |
250 |
| - <p style="border-top: 1px solid #E5E5E5; padding-top: 5px;" class="text-right"> |
251 |
| - <em style="font-size: 8px;">(c) Andrea Ferroni<br> |
252 |
| - This software is distributed under the terms of the<br> |
253 |
| - <a href='./COPYING' target='_blanc'>GNU Affero General Public License</a>. |
254 |
| - </em> |
255 |
| - </p> |
256 |
| - <p class="text-right"> |
257 |
| - <a href="https://github.com/bubbakk/JoM" target="_blanc"><i class="icon-github"></i> Join the project</a><br> |
258 |
| - <a href="https://twitter.com/bubbakk" target="_blanc"><i class="icon-twitter"></i> Tweet me @bubbakk</a> |
259 |
| - </p> |
260 |
| - </div> |
| 229 | + <div id="jom_infopanel"> |
| 230 | + <p style="border-top: 1px solid #E5E5E5; padding-top: 5px;" class="text-right"> |
| 231 | + <em style="font-size: 8px;">(c) 2013, 2013 Andrea Ferroni<br> |
| 232 | + This software is distributed under the terms of the<br> |
| 233 | + <a href='./COPYING' target='_blanc'>GNU Affero General Public License</a>. |
| 234 | + </em> |
| 235 | + </p> |
| 236 | + <p class="text-right"> |
| 237 | + <a href="https://github.com/bubbakk/JoM" target="_blanc"><i class="icon-github"></i> Join the project</a><br> |
| 238 | + <a href="https://twitter.com/bubbakk" target="_blanc"><i class="icon-twitter"></i> Follow me on Twitter</a> |
| 239 | + </p> |
| 240 | + |
261 | 241 | </div>
|
262 | 242 | </div>
|
263 | 243 | </div>
|
|
0 commit comments