removed obsolete remember me button, added notification when trying to go down a protected route

This commit is contained in:
Sockenklaus
2021-10-23 09:37:17 +02:00
parent 2851a762a6
commit 08b31860b3
4 changed files with 15 additions and 18 deletions

View File

@@ -47,7 +47,7 @@ export const useUser = defineStore({
},
actions: {
async login(username: string, password: string, rememberMe: boolean): Promise<boolean> {
async login(username: string, password: string): Promise<boolean> {
const notifications = useNotifications()
@@ -71,7 +71,7 @@ export const useUser = defineStore({
if (axios.isAxiosError(err) && err.response && err.response.data){
const data = err.response.data as AuthErrResult
notifications.add(data.notification.type, data.notification.text)
}
@@ -116,7 +116,7 @@ export const useUser = defineStore({
enabled: true,
strategies: [
{
storage: localStorage
storage: sessionStorage
}
]
}