Register users from admin page

This commit is contained in:
Kevin Thomas
2021-11-05 23:04:34 -07:00
parent f2d1b80673
commit 69a467b13b
11 changed files with 245 additions and 69 deletions

View File

@@ -5,9 +5,6 @@ export default {
drawyer: false,
isAdmin: false
}),
created () {
this.getCurrentUser()
},
methods: {
home () {
this.$router.push('/')
@@ -27,6 +24,7 @@ export default {
})
},
getCurrentUser () {
this.drawyer = true
this.$http.get('/users/current')
.then(response => {
if (response.status === 200) {