fix : connexion Conducteur

This commit is contained in:
2026-03-30 15:05:48 +02:00
parent 1a71ff6834
commit c56b35c6b5
6 changed files with 21 additions and 11 deletions

View File

@@ -69,7 +69,8 @@ const handleSubmit = async () => {
await auth.login(username.value, password.value)
const isAdmin = auth.user?.roles?.includes('ROLE_ADMIN')
await router.push(isAdmin ? '/calendar' : '/hours')
const isDriver = auth.user?.isDriver
await router.push(isAdmin ? '/calendar' : isDriver ? '/driver-hours' : '/hours')
} finally {
isSubmitting.value = false
}