mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
Changes coming from new changes added in here.
This commit is contained in:
parent
af3c8a4e36
commit
a4aabfc369
@ -107,8 +107,10 @@ export default {
|
||||
.catch((error) => {
|
||||
this.toastError(this.$t('error.no-account'))
|
||||
if (error.message.includes('User email not validated')) {
|
||||
this.$store.commit('email', this.form.email)
|
||||
this.$router.push('/thx/login')
|
||||
} else if (error.message.includes('User has no password set yet')) {
|
||||
this.$store.commit('email', this.form.email)
|
||||
this.$router.push('/reset-password/login')
|
||||
}
|
||||
loader.hide()
|
||||
|
||||
@ -102,8 +102,8 @@ describe('Thx', () => {
|
||||
expect(wrapper.find('a.btn').text()).toBe('settings.password.reset')
|
||||
})
|
||||
|
||||
it('links the redirect button to /password', () => {
|
||||
expect(wrapper.find('a.btn').attributes('href')).toBe('/password')
|
||||
it('links the redirect button to /forgot-password', () => {
|
||||
expect(wrapper.find('a.btn').attributes('href')).toBe('/forgot-password')
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@ -46,13 +46,13 @@ const textFields = {
|
||||
headline: 'site.thx.errorTitle',
|
||||
subtitle: 'site.thx.activateEmail',
|
||||
button: 'settings.password.reset',
|
||||
linkTo: '/password',
|
||||
linkTo: '/forgot-password',
|
||||
},
|
||||
resetFailed: {
|
||||
headline: 'site.thx.errorTitle',
|
||||
subtitle: 'site.thx.resetPassword',
|
||||
button: 'settings.password.reset',
|
||||
linkTo: '/password',
|
||||
linkTo: '/forgot-password',
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user