Update login.js

处理重置过期密码时用户名有特殊字符情况下无法正确获取用户名的情况
pull/205/head
horizonlin 2020-04-22 08:53:27 +08:00 committed by GitHub
parent 61523b0dfc
commit 9770920100
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -242,7 +242,7 @@ $app.do_account_login = function (username, password, captcha, oath, is_remember
if (ret.code === TPE_EXPIRED) {
// must change password before login.
window.location.href = '/user/change-expired-password?username=' + username;
window.location.href = '/user/change-expired-password?username=' + encodeURIComponent(username);
}
$app.show_op_box('error', '登录失败:' + tp_error_msg(ret.code, ret.message));