Verifica telegram + email
- convertito la Configurazione newsletter - Protetto le password (al load) che vengono settate in settings
This commit is contained in:
0
src/components/CVerifyEmail/CVerifyEmail.scss
Executable file
0
src/components/CVerifyEmail/CVerifyEmail.scss
Executable file
23
src/components/CVerifyEmail/CVerifyEmail.ts
Executable file
23
src/components/CVerifyEmail/CVerifyEmail.ts
Executable file
@@ -0,0 +1,23 @@
|
||||
import { defineComponent } from 'vue'
|
||||
|
||||
import { CCopyBtn } from '../CCopyBtn'
|
||||
import { useUserStore } from '@store/UserStore'
|
||||
|
||||
export default defineComponent({
|
||||
name: 'CVerifyEmail',
|
||||
components: { CCopyBtn },
|
||||
props: {},
|
||||
setup() {
|
||||
|
||||
const userStore = useUserStore()
|
||||
|
||||
function isEmailVerified(): boolean {
|
||||
return userStore.my.verified_email!
|
||||
}
|
||||
|
||||
return {
|
||||
isEmailVerified,
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
23
src/components/CVerifyEmail/CVerifyEmail.vue
Executable file
23
src/components/CVerifyEmail/CVerifyEmail.vue
Executable file
@@ -0,0 +1,23 @@
|
||||
<template>
|
||||
<div class="text-center q-gutter-sm q-ma-sm clBorderWarning">
|
||||
<q-chip v-if="isEmailVerified()" color="positive" text-color="white" icon="email">
|
||||
{{ `Email ` + $t('pages.statusreg.verified') }}
|
||||
</q-chip>
|
||||
<q-chip v-else color="negative" text-color="white" icon="email">
|
||||
{{ `Email ` + $t('pages.statusreg.nonverified') }}
|
||||
</q-chip>
|
||||
<div v-if="!isEmailVerified()" v-html="$t('components.authentication.email_verification.link_sent', {botname: $t('ws.botname') })">
|
||||
|
||||
</div>
|
||||
<div v-if="!isEmailVerified()" v-html="$t('components.authentication.email_verification.se_non_ricevo')">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts" src="./CVerifyEmail.ts">
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
@import './CVerifyEmail.scss';
|
||||
</style>
|
||||
1
src/components/CVerifyEmail/index.ts
Executable file
1
src/components/CVerifyEmail/index.ts
Executable file
@@ -0,0 +1 @@
|
||||
export {default as CVerifyEmail} from './CVerifyEmail.vue'
|
||||
Reference in New Issue
Block a user