feat: add support for remember sign in (#2402)

This commit is contained in:
Athurg Gooth
2023-10-19 09:38:49 +08:00
committed by GitHub
parent 37601e5d03
commit 0bfcff676c
5 changed files with 17 additions and 4 deletions

View File

@ -17,10 +17,11 @@ export function vacuumDatabase() {
return axios.post("/api/v1/system/vacuum");
}
export function signin(username: string, password: string) {
export function signin(username: string, password: string, remember: boolean) {
return axios.post("/api/v1/auth/signin", {
username,
password,
remember,
});
}