mirror of
https://github.com/QingdaoU/OnlineJudge.git
synced 2024-09-21 08:23:20 +00:00
修复找回密码token的问题,原来写的时候本来是想用index变量确定token的位置,结果一不小心写死了
This commit is contained in:
parent
3dbcf49516
commit
52f62df383
@ -2,8 +2,8 @@ require(["jquery", "bsAlert", "csrfToken", "validator"], function ($, bsAlert, c
|
||||
var applied_captcha = false;
|
||||
$('form').validator().on('submit', function (e) {
|
||||
if (!e.isDefaultPrevented()) {
|
||||
var index = location.href.indexOf("/t/");
|
||||
var token = location.href.substr(36+3, 32);
|
||||
var loca = location.href.split("/");
|
||||
var token = loca[loca.length-2];
|
||||
var captcha = $("#captcha").val();
|
||||
var password = $("#new_password").val();
|
||||
$.ajax({
|
||||
|
Loading…
Reference in New Issue
Block a user