Move src to dashboard (#152)
This commit is contained in:
32
app/javascript/dashboard/routes/auth/Confirmation.vue
Normal file
32
app/javascript/dashboard/routes/auth/Confirmation.vue
Normal file
@@ -0,0 +1,32 @@
|
||||
<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 => {
|
||||
window.location = res.data.redirect_url;
|
||||
}).catch(res => {
|
||||
window.location = res.data.redirect_url;
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user