Make sure we have email on registerAccount page
Closes #179 Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
471e8ac472
commit
7244eebc31
|
@ -88,6 +88,13 @@ export default class Register extends Vue {
|
|||
validationSent: boolean = false;
|
||||
sendingValidation: boolean = false;
|
||||
|
||||
async mounted() {
|
||||
// Make sure no one goes to this page if we don't want to
|
||||
if (!this.email) {
|
||||
await this.$router.replace({ name: RouteName.PAGE_NOT_FOUND });
|
||||
}
|
||||
}
|
||||
|
||||
async submit() {
|
||||
try {
|
||||
this.sendingValidation = true;
|
||||
|
|
Loading…
Reference in a new issue