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
147
148
149
150
151
152
|
<style lang="scss" scoped>
@import '../../styles/colors.scss';
a.is-themed {
background: $basePink;
color: #fafafa;
border: none;
}
a.is-themed:hover {
background: $basePinkHover;
border: none;
}
body.kpop a.is-themed { background: $baseBlue; }
body.kpop a.is-themed:hover { background: $baseBlueHover; }
a.is-text {
display: inline-flex;
padding-top: 4px;
color: #fafafa;
}
a.is-text:hover { color: $basePink; }
body.kpop a.is-text:hover { color: $baseBlue; }
a.text { color: white }
a.text:hover { color: #FF015B; }
input, p.control a.button {
border-left: 0px;
border-top: 0px;
border-right: 0px;
border-radius: 0px;
box-shadow: 0 0 0;
}
p.control a.button { margin-left: 10px; }
p.control a.button:hover { border-bottom: 1px solid #FF015B; }
p.control a#loginBtn { border-right: 0px; }
p.control a#registerBtn { border-left: 0px; }
span.errorMessage {
display: block;
padding-top: 50px;
color: #FF015B;
}
section.hero {
overflow: hidden;
}
section.hero, section.hero > * {
position: relative;
}
section.hero div.background {
content: '';
position: fixed;
top: -50px;
left: -50px;
background: no-repeat scroll 50% 50%;
background-size: cover;
background-image: url(../../../public/images/home-background.jpg);
filter: blur(25px);
-webkit-filter: blur(25px);
z-index: 0;
height: calc(100vh + 100px);
width: calc(100% + 100px);
}
h3 {
color: #c7c7c7;
margin-bottom: 10px;
}
</style>
<template>
<section class="hero is-fullheight has-text-centered">
<div class="background"/>
<div class="hero-body">
<div class="container">
<router-link to="/">
<div class="logo">
<Logo/>
</div>
</router-link>
<h3>To request a new password please enter your account email in the box below. <br>We will send you an email with further instructions.</h3>
<div class="columns">
<div class="column is-4 is-offset-4">
<b-field>
<b-input v-model="email"
type="text"
placeholder="Email"/>
</b-field>
<p class="control has-addons is-pulled-right">
<a :class="{ 'is-loading': isLoading }"
class="button is-themed"
@click="request">Request Password Change</a>
</p>
</div>
</div>
</div>
</div>
</section>
</template>
<script>
import Logo from '../../components/logo/Logo.vue';
export default {
name: 'ForgotPassword',
components: { Logo },
data() {
return {
email: null,
isLoading: false
};
},
metaInfo() {
return { title: 'Forgot password' };
},
mounted() {
this.$ga.page({
page: '/login/forgot',
title: 'Forgot Password',
location: window.location.href
});
},
methods: {
request() {
if (this.isLoading) return;
if (!this.email || this.email === '') {
this.$showToast('Email can\'t be empty', true);
return;
}
this.isLoading = true;
this.axios.post(`${this.$config.baseURL}/password/forgot`, { email: this.email }).then(response => {
this.$showToast(response.data.message);
this.isLoading = false;
return this.$router.push('/login');
}).catch(err => {
this.isLoading = false;
this.$onPromiseError(err);
});
}
}
};
</script>
|