diff --git a/frontend/components/organisms/auth/LoginForm.vue b/frontend/components/organisms/auth/LoginForm.vue index 8b2a81e0..76138562 100644 --- a/frontend/components/organisms/auth/LoginForm.vue +++ b/frontend/components/organisms/auth/LoginForm.vue @@ -17,6 +17,7 @@ name="login" prepend-icon="person" type="text" + autofocus /> ({ token: null @@ -22,9 +23,7 @@ export const getters = { export const actions = { authenticateUser({ commit }, authData) { - const authUrl = 'http://127.0.0.1:8000/v1/auth-token' - return this.$axios - .$post(authUrl, authData) + return AuthService.postCredential(authData) .then((result) => { commit('setToken', result.token) localStorage.setItem('token', result.token)