fix : message d'erreur

This commit is contained in:
2026-02-20 08:17:29 +01:00
parent 3c1acabb49
commit a3bc7db073
2 changed files with 26 additions and 2 deletions

View File

@@ -8,6 +8,7 @@ export const getCurrentUser = () => {
export const login = (username: string, password: string) => {
const api = useApi()
return api.post('/login_check', { username, password }, {
toastOn401: true,
toastErrorKey: 'errors.auth.login'
})
}