|
@@ -71,8 +71,13 @@
|
71
|
71
|
</div>
|
72
|
72
|
<button @click="Login()" class="btn btn-b-n" type="submit">Sign In</button>
|
73
|
73
|
<hr />
|
74
|
|
- <h5>Trouble signing in?</h5>
|
75
|
|
- <div>
|
|
74
|
+ <div
|
|
75
|
+ @click="ToggleTrouble()"
|
|
76
|
+ class="btn cursor: pointer;"
|
|
77
|
+ style="margin:2px; color: #60CBEB; font-size:110%;"
|
|
78
|
+ >Trouble signing in?</div>
|
|
79
|
+ <br />
|
|
80
|
+ <div v-if="troubleToggle">
|
76
|
81
|
<!-- <alert :text="'Username & password request email sent'" :type="'SUCCESS'" /> -->
|
77
|
82
|
<div class="row">
|
78
|
83
|
<div class="input-group-prepend">
|
|
@@ -82,9 +87,9 @@
|
82
|
87
|
<input class="form-control" placeholder="Your Email" type="text" name="email" value />
|
83
|
88
|
</div>
|
84
|
89
|
</div>
|
|
90
|
+ <br />
|
|
91
|
+ <button @click="SendMail()" class="btn btn-b-n" type="submit">Submit</button>
|
85
|
92
|
</div>
|
86
|
|
- <div class="form-group row"></div>
|
87
|
|
- <button @click="SendMail()" class="btn btn-b-n" type="submit">Submit</button>
|
88
|
93
|
</div>
|
89
|
94
|
</form>
|
90
|
95
|
</div>
|
|
@@ -110,6 +115,7 @@ export default {
|
110
|
115
|
text: '',
|
111
|
116
|
showPassword: false,
|
112
|
117
|
email: '',
|
|
118
|
+ troubleToggle: false,
|
113
|
119
|
};
|
114
|
120
|
},
|
115
|
121
|
computed: {
|
|
@@ -117,6 +123,11 @@ export default {
|
117
|
123
|
},
|
118
|
124
|
methods: {
|
119
|
125
|
...mapActions('authentication', ['login', 'init']),
|
|
126
|
+ ToggleTrouble() {
|
|
127
|
+ if (this.troubleToggle) {
|
|
128
|
+ this.troubleToggle = false;
|
|
129
|
+ } else this.troubleToggle = true;
|
|
130
|
+ },
|
120
|
131
|
Login() {
|
121
|
132
|
this.login().then(() => {
|
122
|
133
|
if (this.$store.state.authentication.status === 'error') {
|