Set authenticated after sigin completes without error
This commit is contained in:
parent
4bb37c5ab3
commit
d67c54c6e7
1 changed files with 3 additions and 1 deletions
|
|
@ -50,11 +50,13 @@ export const useSessionStore = defineStore("session", () => {
|
|||
username: string,
|
||||
): Promise<SigninResult> {
|
||||
try {
|
||||
console.log("begin signin request");
|
||||
await apiClient.JSONPost("/api/signin", {
|
||||
password: password,
|
||||
username: username,
|
||||
});
|
||||
isAuthenticated.value = false;
|
||||
isAuthenticated.value = true;
|
||||
console.log("set authenticated to true after signin request");
|
||||
return {
|
||||
is_success: true,
|
||||
status: 200,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue