2019-08-14 09:48:44 +00:00
|
|
|
<template>
|
|
|
|
<loading-state :message="$t('CONFIRM_EMAIL')"></loading-state>
|
|
|
|
</template>
|
|
|
|
<script>
|
|
|
|
/* eslint-disable */
|
|
|
|
import LoadingState from '../../components/widgets/LoadingState';
|
|
|
|
import Auth from '../../api/auth';
|
|
|
|
export default {
|
|
|
|
props: {
|
|
|
|
confirmationToken: String,
|
|
|
|
redirectUrl: String,
|
|
|
|
config: String,
|
|
|
|
},
|
|
|
|
components: {
|
|
|
|
LoadingState,
|
|
|
|
},
|
|
|
|
mounted() {
|
|
|
|
this.confirmToken();
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
confirmToken() {
|
|
|
|
Auth.verifyPasswordToken({
|
|
|
|
confirmationToken: this.confirmationToken
|
|
|
|
}).then(res => {
|
2020-04-27 09:45:05 +00:00
|
|
|
window.location = res.data.redirect_url;
|
2019-08-14 09:48:44 +00:00
|
|
|
}).catch(res => {
|
2020-03-09 17:57:10 +00:00
|
|
|
window.location = '/';
|
2019-08-14 09:48:44 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|