Browse Source

Fixed #61

master
Menci 6 years ago
parent
commit
a50c7ddf4a
  1. 2
      views/login.ejs
  2. 2
      views/sign_up.ejs

2
views/login.ejs

@ -50,7 +50,7 @@ function show_error(error) {
$("#error").show();
}
function success(session_id) {
window.location.href = <%- JSON.stringify(req.query.url || '/') %>;
window.location.href = location.protocol + '//' + location.host + <%- JSON.stringify(req.query.url || '/') %>;
}
function login() {
password = md5($("#password").val() + "syzoj2_xxx");

2
views/sign_up.ejs

@ -37,7 +37,7 @@ function show_error(error) {
function success() {
alert("注册成功!");
window.location.href = <%- JSON.stringify(req.query.url || '/') %>;
window.location.href = location.protocol + '//' + location.host + <%- JSON.stringify(req.query.url || '/') %>;
}
function mail_required() {

Loading…
Cancel
Save