|
@@ -130,10 +130,10 @@ window.onload = function () {
|
|
|
Cookies.set(remember, "true", {
|
|
|
path: SYS_ADDR
|
|
|
});
|
|
|
- Cookies.set(hex_sha1("username"), Secret_Key(userInput.val()||result.result.username, 'encryption'), {
|
|
|
+ Cookies.set(hex_sha1("username"), Secret_Key(userInput?.val()||result.result.username, 'encryption'), {
|
|
|
path: SYS_ADDR
|
|
|
});
|
|
|
- Cookies.set(hex_sha1("psw"), Secret_Key(passwordInput.val()||'', 'encryption'), {
|
|
|
+ Cookies.set(hex_sha1("psw"), Secret_Key(passwordInput?.val()||'', 'encryption'), {
|
|
|
path: SYS_ADDR
|
|
|
});
|
|
|
} else {
|
|
@@ -143,7 +143,7 @@ window.onload = function () {
|
|
|
Cookies.remove(hex_sha1("userid"));
|
|
|
}
|
|
|
if (result.code == 1) {
|
|
|
- Cookies.set(hex_sha1("username"), Secret_Key(userInput.val()||result.result.username, 'encryption'), {
|
|
|
+ Cookies.set(hex_sha1("username"), Secret_Key(userInput?.val()||result.result.username, 'encryption'), {
|
|
|
path: COOKIE_PATH
|
|
|
});
|
|
|
Cookies.set(hex_sha1("token"), Secret_Key(result.result.accessToken, 'encryption'), {
|