added user verification option in admin settings

This commit is contained in:
Milos Holba
2021-05-20 21:18:28 +02:00
parent 32bc3bacc0
commit 0139cc92bf
11 changed files with 117 additions and 14 deletions
+27
View File
@@ -61,6 +61,19 @@
</router-link>
</span>
</AuthContent>
<AuthContent name="not-verified" :visible="false">
<div class="user" v-if="checkedAccount">
<img class="user-avatar" :src="checkedAccount.avatar" :alt="checkedAccount.name">
<h1>{{ checkedAccount.name }}</h1>
<h2>{{ $t('page_not_verified.subtitle') }}</h2>
</div>
<span class="additional-link"> {{ $t('page_not_verified.resend_text') }}
<a @click="resendEmail" class="text-theme">{{ $t('page_not_verified.resend_button') }} </a>
</span>
</AuthContent>
</AuthContentWrapper>
</template>
@@ -110,6 +123,13 @@
}
})
},
resendEmail() {
axios.
post('/api/user/email/resend/verify', {
email: this.loginEmail
})
.then(console.log('send'))
},
async logIn() {
// Validate fields
@@ -164,6 +184,13 @@
if (!isValid) return;
if(!this.checkedAccount.verified) {
this.goToAuthPage('not-verified')
return
}
// Start loading
this.isLoading = true