2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-07 11:57:17 +08:00

feat: 优化安全登录

This commit is contained in:
耗子
2024-12-03 04:03:21 +08:00
parent 7bc716cff6
commit fc97709ebf
4 changed files with 11 additions and 8 deletions

View File

@@ -4,10 +4,11 @@ export default {
// 公钥
key: () => http.Get('/user/key'),
// 登录
login: (username: string, password: string) =>
login: (username: string, password: string, safe_login: boolean) =>
http.Post('/user/login', {
username,
password
password,
safe_login
}),
// 登出
logout: () => http.Post('/user/logout'),