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

@@ -3,6 +3,8 @@ export default {
valid: false,
username: '',
password: '',
snackbar: false,
snackbarText: '',
usernameRules: [
v => !!v || 'Username is required'
],
@@ -22,6 +24,10 @@ export default {
}
})
.catch((error) => {
if (error.response.status === 401) {
this.snackbar = true
this.snackbarText = 'Login Failed: Unauthorized'
}
console.error(error.response)
})
}