Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
<template>
<div>
<div class="container">
<div class="header">
<img alt="logo" src="@/assets/logo_pigma.png"/>
</div>
<div class="form">
<h5 class="title">Réinitialisez votre mot de passe</h5>
<form>
<div class="form-row">
<label>
Veuillez indiquer l'adresse e-mail de votre compte
</label>
<input
v-model="email"
class="form-control"
type="text"
placeholder="Adresse e-mail"
>
</div>
<button
type="submit"
class="btn btn-primary"
@click.prevent="reinitPassword"
>
Envoyer un e-mail de réinitialisation
</button>
<button
class="btn btn-outline-secondary"
@click="$router.push({ name: 'SignIn' })">
Annuler
</button>
</form>
</div>
<div class="messages">
<div v-if="error">
<p class="form-errors">{{ error }}</p>
</div>
</div>
</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: 'ForgottenPassword',
data() {
return {
email: null,
};
},
computed: {
...mapState('forgotten-pwd', [
'error',
'success'
])
},
methods: {
...mapActions('forgotten-pwd', [
'REQUEST_FORGOTTEN_PASSWORD'
]),
reinitPassword() {
this.REQUEST_FORGOTTEN_PASSWORD({
email: this.email
})
}
}
};
</script>
<style lang="less" scoped>
.container {
margin: auto;
width: 480px;
height: fit-content;
.header {
margin: 0 0 5rem 0;
img {
width: 440px;
}
}
.form {
.form-row {
margin: 0 0 40px 0;
}
button.btn {
float: right;
position: relative;
margin-left: 7px;
margin-right: 0;
}
button.btn-primary {
border: 2px solid #9BD0FF;
border-radius: 8px;
}
button.btn-outline-secondary {
background-color: #F7F8FA;
border: 2px solid #A9B2B9;
border-radius: 8px;
color: #2F3234;
}
button.btn-outline-secondary:hover {
color: white;
background-color: #4b4b4b;
}
}
.messages {
display: inline-block;
position: relative;
top: 1.5em;
}
}
.form-errors {
color: #EB0600 !important;
}
.form-success {
color: #11ac45 !important;
}
.footer {
position: absolute;
bottom: 0;
font-size: small;
}
.footer a {
text-decoration: none;
}
</style>