Archived
Integrate Firestore database
This commit is contained in:
1 parent
e582a1ab41
commit
da9f105825
5 files changed
+72
-19
No files matched your search
@@ -18,9 +18,11 @@ export default {
|
||||
this.$store.commit('initFirebase')
|
||||
if (user) {
|
||||
// User is signed in; redirect to main page (dashboard)
|
||||
this.$store.commit('setUserLoggedIn', true)
|
||||
this.$router.push({ name: 'dashboard' })
|
||||
} else {
|
||||
// User is signed out; redirect to login page
|
||||
this.$store.commit('setUserLoggedIn', false)
|
||||
this.$router.push({ name: 'login' })
|
||||
}
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user