diff options
| author | Lambda <lambda@lum.domain_not_set.invalid> | 2018-12-25 18:43:52 +0100 |
|---|---|---|
| committer | Lambda <lambda@lum.domain_not_set.invalid> | 2018-12-25 18:43:52 +0100 |
| commit | 24eba26c5b34a6abedbafebab0ed9489f0fcccd6 (patch) | |
| tree | 61d3d4343e2d9e0e0d51a7278cdf34ae6b8e5f36 /src/components/registration | |
| parent | 0ad837846a3b833203bdae68fc6d3cb37c257c4b (diff) | |
Restore old routes, enable user route as fallback.
Diffstat (limited to 'src/components/registration')
| -rw-r--r-- | src/components/registration/registration.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/registration/registration.js b/src/components/registration/registration.js index dd8e6e5d..ab6cd64d 100644 --- a/src/components/registration/registration.js +++ b/src/components/registration/registration.js @@ -28,7 +28,7 @@ const registration = { }, created () { if ((!this.registrationOpen && !this.token) || this.signedIn) { - this.$router.push('/~/main/all') + this.$router.push({name: 'root'}) } this.setCaptcha() @@ -58,7 +58,7 @@ const registration = { if (!this.$v.$invalid) { try { await this.signUp(this.user) - this.$router.push('/~/main/friends') + this.$router.push({name: 'friends'}) } catch (error) { console.warn('Registration failed: ' + error) } |
