diff options
| author | Zephyrrus <[email protected]> | 2020-12-24 10:40:50 +0200 |
|---|---|---|
| committer | Zephyrrus <[email protected]> | 2020-12-24 10:40:50 +0200 |
| commit | 90001c2df56d58e69fd199a518ae7f3e4ed327fc (patch) | |
| tree | ac601537b5f464a1b03b084e5139e460f42e3473 /src/site/store/auth.js | |
| parent | chore: update lock files (diff) | |
| download | host.fuwn.me-90001c2df56d58e69fd199a518ae7f3e4ed327fc.tar.xz host.fuwn.me-90001c2df56d58e69fd199a518ae7f3e4ed327fc.zip | |
chore: remove trailing commas
Diffstat (limited to 'src/site/store/auth.js')
| -rw-r--r-- | src/site/store/auth.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/site/store/auth.js b/src/site/store/auth.js index 96631e2..85e3a39 100644 --- a/src/site/store/auth.js +++ b/src/site/store/auth.js @@ -3,9 +3,9 @@ const getDefaultState = () => ({ user: { id: null, isAdmin: false, - username: null, + username: null }, - token: null, + token: null }); export const state = getDefaultState; @@ -13,7 +13,7 @@ export const state = getDefaultState; export const getters = { isLoggedIn: (state) => state.loggedIn, getApiKey: (state) => state.user?.apiKey, - getToken: (state) => state.token, + getToken: (state) => state.token }; export const actions = { @@ -37,7 +37,7 @@ export const actions = { async register(_, { username, password }) { return this.$axios.$post('auth/register', { username, - password, + password }); }, async fetchCurrentUser({ commit, dispatch }) { @@ -52,7 +52,7 @@ export const actions = { try { const response = await this.$axios.$post('user/password/change', { password, - newPassword, + newPassword }); return response; @@ -76,7 +76,7 @@ export const actions = { }, logout({ commit }) { commit('logout'); - }, + } }; export const mutations = { @@ -102,5 +102,5 @@ export const mutations = { this.$cookies.remove('token', { path: '/' }); // reset state to default Object.assign(state, getDefaultState()); - }, + } }; |