mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
throw new AuthenticationError on password error
This commit is contained in:
parent
0b623cf083
commit
57d9088c6c
@ -117,7 +117,7 @@ export const resolvers = {
|
||||
})
|
||||
}
|
||||
session.close()
|
||||
throw new Error('Incorrect username or password.')
|
||||
throw new AuthenticationError('Incorrect username or password.')
|
||||
}
|
||||
session.close()
|
||||
} catch (error) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user