In case where their is no password set now we need to send the user to a page to change his password.

This commit is contained in:
elweyn 2021-12-14 08:09:47 +01:00
parent 7341515dad
commit f1b28a640e

View File

@ -108,6 +108,8 @@ export default {
this.$toasted.global.error(this.$t('error.no-account'))
if (error.message.includes('User email not validated')) {
this.$router.push('/thx/login')
} else if (error.message.includes('User has no password set yet')) {
this.$router.push('/reset/login')
}
loader.hide()
})