-
Co-authored-by:
Florent <florent@Air-de-neogeo.neogeo.local> Co-authored-by:
m431m <mmeliani@neogeo.fr> Co-authored-by:
Kevin Rakotobe <krakotobe@neogeo.fr>
Co-authored-by:
Florent <florent@Air-de-neogeo.neogeo.local> Co-authored-by:
m431m <mmeliani@neogeo.fr> Co-authored-by:
Kevin Rakotobe <krakotobe@neogeo.fr>
ValidationEmail.vue 1.68 KiB
<template>
<div>
<div class="header">
<img alt="logo" src="@/assets/logo_pigma.png"/>
</div>
<div class="center">
<b-container class="msg" v-if="status">
<p>
Votre nouvelle adresse e-mail est validée.
</p>
<b-button
type="button"
variant="outline-primary"
@click.prevent="$router.push({ name: 'SignIn' })"
>
Ouvrir la page de connexion
</b-button>
</b-container>
<b-container class="msg" v-else>
<p>
Une erreur est survenue. Veuillez contacter l'administrateur du site.
</p>
</b-container>
</div>
<small class="footer">
<p>Propulsé par <a href="https://www.neogeo.fr/" target="_blank" rel="noopener">Neogeo-Technologies</a></p>
</small>
</div>
</template>
<script>
import {
mapState,
mapActions,
} from 'vuex';
export default {
name: 'ValidationEmail',
data: () => {
return {
};
},
computed: {
...mapState('validation-email', [
'status'
])
},
created() {
this.POST_TOKEN(this.$route.query.token);
},
methods: {
...mapActions('validation-email', [
'POST_TOKEN'
])
}
};
</script>
<style lang="less" scoped>
.header {
position: absolute;
top: 0;
left: 0;
}
.header > img {
width: 440px;
}
.center {
position: initial;
}
.center .msg.container {
margin: 0;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
text-align: center;
}
.center .msg.container,
.center .msg.container button {
font-size: large;
}
.footer {
position: absolute;
bottom: 0;
font-size: small;
}
.footer a {
text-decoration: none;
}
</style>