Set authenticated after sigin completes without error

This commit is contained in:
Eli Ribble 2026-04-29 15:04:44 +00:00
parent 4bb37c5ab3
commit d67c54c6e7
No known key found for this signature in database

View file

@ -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,