create new register route(Laravel) , create new email successfully verified route(Vue)

This commit is contained in:
Milos Holba
2021-05-22 19:36:02 +02:00
parent a7e26cb61f
commit 4d078dc24a
12 changed files with 180 additions and 12 deletions
+12 -6
View File
@@ -132,17 +132,23 @@
// Send request to get user token
axios
.post('/register', this.register)
.post('/api/register', this.register)
.then(() => {
// End loading
this.isLoading = false
// Set login state
this.$store.commit('SET_AUTHORIZED', true)
// Go to files page
this.$router.push({name: 'Files'})
if(! config.userVerification) {
// Set login state
this.$store.commit('SET_AUTHORIZED', true)
// Go to files page
this.$router.push({name: 'Files'})
} else {
// Go to sign-in page
this.$router.push({name: 'SignIn'})
}
})
.catch(error => {