fix: erreur explicite lors de l'échec de connexion
This commit is contained in:
@@ -22,10 +22,6 @@ export const options = {
|
||||
|
||||
const user = await res.json()
|
||||
|
||||
if (!res.ok && user) {
|
||||
throw new Error('E-mail ou mot de passe incorrect')
|
||||
}
|
||||
|
||||
if (res.ok && user) {
|
||||
return user
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user