mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
Changed the Login error handling so that we get the no-account message in case of a specific error, else we send the user to /reset/login
This commit is contained in:
parent
963d7de628
commit
c7fbb9b0bf
@ -199,7 +199,6 @@ export class UserResolver {
|
||||
throw new Error('No user with this credentials')
|
||||
})
|
||||
if (!loginUser.emailChecked) {
|
||||
// TODO we want to catch this on the frontend and ask the user to check his emails or resend code
|
||||
throw new Error('User email not validated')
|
||||
}
|
||||
if (loginUser.password === BigInt(0)) {
|
||||
|
||||
@ -105,7 +105,7 @@ export default {
|
||||
loader.hide()
|
||||
})
|
||||
.catch((error) => {
|
||||
if (!error.message.includes('User email not validated')) {
|
||||
if (error.message.includes('No user with this credentials')) {
|
||||
this.$toasted.error(this.$t('error.no-account'))
|
||||
} else {
|
||||
// : this.$t('error.no-email-verify')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user