diff --git a/src/stores/acctMgmt.ts b/src/stores/acctMgmt.ts index b3bef02..bb62d06 100644 --- a/src/stores/acctMgmt.ts +++ b/src/stores/acctMgmt.ts @@ -269,7 +269,7 @@ export const useAcctMgmtStore = defineStore('acctMgmtStore', { this.currentViewingUser = response.data; this.currentViewingUser.is_admin = response.data.roles?.some(role => role.code === 'admin') ?? false; return response.status === 200; - } catch (error) { + } catch { // No need to show an error, because an error here means the account is unique return false; } diff --git a/src/stores/login.ts b/src/stores/login.ts index 3e7da47..b3fba90 100644 --- a/src/stores/login.ts +++ b/src/stores/login.ts @@ -87,6 +87,7 @@ export const useLoginStore = defineStore("loginStore", { } this.$router.push("/files"); } catch (error) { + console.error("Login failed:", error); this.isInvalid = true; } }, @@ -132,6 +133,7 @@ export const useLoginStore = defineStore("loginStore", { try { await apiClient.get(api); } catch (error) { + console.error("Session check failed:", error); this.$router.push("/login"); } },