mirror of
https://github.com/acepanel/panel.git
synced 2026-02-07 11:57:17 +08:00
feat: 优化安全登录
This commit is contained in:
@@ -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'),
|
||||
|
||||
Reference in New Issue
Block a user