mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
get the test working
This commit is contained in:
parent
58690e54e5
commit
fd409252cb
@ -28,6 +28,9 @@ const createMockObject = (comingFrom) => {
|
||||
optin: '123',
|
||||
comingFrom,
|
||||
},
|
||||
path: {
|
||||
includes: (t) => t,
|
||||
},
|
||||
},
|
||||
$toasted: {
|
||||
global: {
|
||||
|
||||
@ -95,15 +95,12 @@ export default {
|
||||
this.$router.push('/thx/reset')
|
||||
})
|
||||
.catch((error) => {
|
||||
if (error.message.includes('Code is older than 10 minutes')) {
|
||||
this.$toasted.global.error(error.message)
|
||||
this.$toasted.global.error(error.message)
|
||||
if (error.message.includes('Code is older than 10 minutes'))
|
||||
this.$router.push('/password/reset')
|
||||
} else {
|
||||
this.$toasted.global.error(error.message)
|
||||
}
|
||||
})
|
||||
},
|
||||
setDisplaySetup(from) {
|
||||
setDisplaySetup() {
|
||||
if (this.$route.path.includes('checkEmail')) {
|
||||
this.displaySetup = textFields.checkEmail
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user