mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-01 19:48:08 +00:00
37 lines
861 B
Vue
37 lines
861 B
Vue
<template>
|
|
<div class="flex items-center justify-center h-full w-full">
|
|
<spinner color-scheme="primary" size="" />
|
|
<div class="ml-2">{{ $t('CONFIRM_EMAIL') }}</div>
|
|
</div>
|
|
</template>
|
|
<script>
|
|
import { DEFAULT_REDIRECT_URL } from 'dashboard/constants/globals';
|
|
import { verifyPasswordToken } from '../../../api/auth';
|
|
import Spinner from 'shared/components/Spinner';
|
|
|
|
export default {
|
|
components: { Spinner },
|
|
props: {
|
|
confirmationToken: {
|
|
type: String,
|
|
default: '',
|
|
},
|
|
},
|
|
mounted() {
|
|
this.confirmToken();
|
|
},
|
|
methods: {
|
|
async confirmToken() {
|
|
try {
|
|
await verifyPasswordToken({
|
|
confirmationToken: this.confirmationToken,
|
|
});
|
|
window.location = DEFAULT_REDIRECT_URL;
|
|
} catch (error) {
|
|
window.location = DEFAULT_REDIRECT_URL;
|
|
}
|
|
},
|
|
},
|
|
};
|
|
</script>
|