mirror of
https://github.com/yhl452493373/frps-panel.git
synced 2026-04-04 06:16:59 +08:00
store auth information with session
This commit is contained in:
@@ -14,8 +14,7 @@
|
||||
},
|
||||
success: function (result) {
|
||||
if (result.success) {
|
||||
document.cookie = 'token=' + result.token + ';path=/'
|
||||
window.location.href = "/"
|
||||
window.location.reload();
|
||||
} else {
|
||||
layui.layer.msg(result.message);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user