2022-09-20 19:59:52 +00:00
|
|
|
<template>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-8 m-auto px-4">
|
|
|
|
<h1 class="my-6">
|
|
|
|
{{ $t('verify_email') }}
|
|
|
|
</h1>
|
|
|
|
<form @submit.prevent="send" @keydown="form.onKeydown($event)">
|
|
|
|
<alert-success :form="form" :message="status" />
|
|
|
|
|
|
|
|
<!-- Email -->
|
|
|
|
<text-input name="email" :form="form" :label="$t('email')" :required="true" />
|
|
|
|
|
|
|
|
<!-- Submit Button -->
|
|
|
|
<div class="form-group row">
|
|
|
|
<div class="col-md-9 ml-md-auto">
|
|
|
|
<v-button :loading="form.busy">
|
|
|
|
{{ $t('send_verification_link') }}
|
|
|
|
</v-button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import Form from 'vform'
|
2023-01-21 11:57:37 +00:00
|
|
|
import SeoMeta from '../../../mixins/seo-meta.js'
|
2022-09-20 19:59:52 +00:00
|
|
|
|
|
|
|
export default {
|
|
|
|
middleware: 'guest',
|
2022-12-22 10:55:17 +00:00
|
|
|
mixins: [SeoMeta],
|
|
|
|
|
2022-09-20 19:59:52 +00:00
|
|
|
data: () => ({
|
2022-12-22 10:55:17 +00:00
|
|
|
metaTitle: 'Verify Email',
|
2022-09-20 19:59:52 +00:00
|
|
|
status: '',
|
|
|
|
form: new Form({
|
|
|
|
email: ''
|
|
|
|
})
|
|
|
|
}),
|
|
|
|
|
|
|
|
created () {
|
|
|
|
if (this.$route.query.email) {
|
|
|
|
this.form.email = this.$route.query.email
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
methods: {
|
|
|
|
async send () {
|
|
|
|
const { data } = await this.form.post('/api/email/resend')
|
|
|
|
|
|
|
|
this.status = data.status
|
|
|
|
|
|
|
|
this.form.reset()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|