In case where the user has used an OptIn code that was to old then the user is send to a thx/resetFailed page where he gets a message that the code was to old.

This commit is contained in:
elweyn 2022-01-22 14:11:54 +01:00
parent 3676a57398
commit f5383e3c05
4 changed files with 10 additions and 2 deletions

View File

@ -204,6 +204,7 @@
"errorTitle": "Achtung!",
"register": "Du bist jetzt registriert, bitte überprüfe deine Emails und klicke auf den Aktivierungslink.",
"reset": "Dein Passwort wurde geändert.",
"resetPassword": "Den Code den Du genutzt hast ist zu alt bitte fordere ein neuen über die Passwort Reset Seite an.",
"title": "Danke!"
}
},

View File

@ -197,13 +197,14 @@
"uppercase": "One uppercase letter required."
},
"thx": {
"activateEmail": "Your account has not been activated yet, please check your emails and click the activation link!",
"activateEmail": "Your account has not been activated yet, please check your emails and click the activation link! Or order a new activation link over the password reset page.",
"checkEmail": "Your email has been successfully verified.",
"email": "We have sent you an email.",
"emailActivated": "Thank you your email has been activated.",
"errorTitle": "Attention!",
"register": "You are registered now, please check your emails and click the activation link.",
"reset": "Your password has been changed.",
"resetPassword": "The code you used was to old please order a new on over the password reset page.",
"title": "Thank you!"
}
},

View File

@ -97,7 +97,7 @@ export default {
.catch((error) => {
this.$toasted.global.error(error.message)
if (error.message.includes('Code is older than 10 minutes')) {
this.$router.push('/thx/login')
this.$router.push('/thx/resetFailed')
}
})
},

View File

@ -48,6 +48,12 @@ const textFields = {
button: 'settings.password.reset',
linkTo: '/password',
},
resetFailed: {
headline: 'site.thx.errorTitle',
subtitle: 'site.thx.resetPassword',
button: 'settings.password.reset',
linkTo: '/password',
},
}
export default {