|
|
@ -21,7 +21,7 @@ const users = {
|
|
|
|
loginUser (store, userCredentials) {
|
|
|
|
loginUser (store, userCredentials) {
|
|
|
|
const commit = store.commit
|
|
|
|
const commit = store.commit
|
|
|
|
commit('beginLogin')
|
|
|
|
commit('beginLogin')
|
|
|
|
apiService.verifyCredentials(userCredentials)
|
|
|
|
return apiService.verifyCredentials(userCredentials)
|
|
|
|
.then((response) => {
|
|
|
|
.then((response) => {
|
|
|
|
if (response.ok) {
|
|
|
|
if (response.ok) {
|
|
|
|
response.json()
|
|
|
|
response.json()
|
|
|
|