mirror of
https://framagit.org/framasoft/mobilizon.git
synced 2024-12-25 01:12:30 +00:00
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
1 changed files with 7 additions and 0 deletions
|
@ -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