mirror of
https://framagit.org/framasoft/mobilizon.git
synced 2024-12-25 09:22:22 +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;
|
validationSent: boolean = false;
|
||||||
sendingValidation: 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() {
|
async submit() {
|
||||||
try {
|
try {
|
||||||
this.sendingValidation = true;
|
this.sendingValidation = true;
|
||||||
|
|
Loading…
Reference in a new issue