Robert Schäfer c85c94aa40 Splitting components, better route navigation
This also allows us to generate a password reset link to quickly reset
your password without entering the code and email manually.
2019-06-19 14:23:22 +02:00

19 lines
360 B
Vue

<template>
<verify-code @verification="handleVerification" />
</template>
<script>
import VerifyCode from '~/components/PasswordReset/VerifyCode'
export default {
components: {
VerifyCode,
},
methods: {
handleVerification({ email, code }) {
this.$router.push({ path: 'change-password', query: { email, code } })
},
},
}
</script>