Merge branch 'feature/new-user-routes' into 'develop'

Make domain.com/username routes work

Closes pleroma#395

See merge request pleroma/pleroma-fe!392
This commit is contained in:
lambda 2018-12-18 15:26:00 +00:00
commit 2f28bf95fd
32 changed files with 1778 additions and 728 deletions

View file

@ -28,7 +28,7 @@ const registration = {
},
created () {
if ((!this.registrationOpen && !this.token) || this.signedIn) {
this.$router.push('/main/all')
this.$router.push('/~/main/all')
}
this.setCaptcha()
@ -56,7 +56,7 @@ const registration = {
if (!this.$v.$invalid) {
try {
await this.signUp(this.user)
this.$router.push('/main/friends')
this.$router.push('/~/main/friends')
} catch (error) {
console.warn('Registration failed: ' + error)
}