This commit is contained in:
Robert Schäfer 2019-06-18 23:28:48 +02:00
parent 29b910cfb7
commit d8eca07c21

View File

@ -3,7 +3,10 @@
<ds-flex> <ds-flex>
<ds-flex-item :width="{ base: '100%' }" centered> <ds-flex-item :width="{ base: '100%' }" centered>
<ds-space style="text-align: center;" margin-top="small" margin-bottom="xxx-small" centered> <ds-space style="text-align: center;" margin-top="small" margin-bottom="xxx-small" centered>
<password-reset @handleSubmitted="handlePasswordResetRequested" v-if="!passwordResetRequested" /> <password-reset
@handleSubmitted="handlePasswordResetRequested"
v-if="!passwordResetRequested"
/>
<verify-code v-else @passwordResetResponse="handlePasswordResetResponse" /> <verify-code v-else @passwordResetResponse="handlePasswordResetResponse" />
</ds-space> </ds-space>
</ds-flex-item> </ds-flex-item>
@ -19,7 +22,7 @@ export default {
layout: 'default', layout: 'default',
data() { data() {
return { return {
passwordResetRequested: false passwordResetRequested: false,
} }
}, },
components: { components: {
@ -31,7 +34,7 @@ export default {
this.passwordResetRequested = true this.passwordResetRequested = true
}, },
handlePasswordResetResponse(response) { handlePasswordResetResponse(response) {
if (response === 'success'){ if (response === 'success') {
this.$router.push('login') this.$router.push('login')
} }
}, },