If optin code to old send user to the error page that says that the code is not active anymore.

This commit is contained in:
elweyn 2022-01-22 10:05:15 +01:00
parent c29245b3ca
commit 2a4f66a03d

View File

@ -96,8 +96,9 @@ export default {
})
.catch((error) => {
this.$toasted.global.error(error.message)
if (error.message.includes('Code is older than 10 minutes'))
this.$router.push('/password/reset')
if (error.message.includes('Code is older than 10 minutes')){
this.$router.push('/thx/login')
}
})
},
setDisplaySetup() {