diff --git a/docker-compose.override.yml b/docker-compose.override.yml index 08665fd04..7dad57d93 100644 --- a/docker-compose.override.yml +++ b/docker-compose.override.yml @@ -37,9 +37,9 @@ services: ######################################################### ## COMMUNITY SERVER (cakephp with php-fpm) ############## ######################################################### - community-server: - volumes: - - ./community_server + #community-server: + # volumes: + # - ./community_server ######################################################### diff --git a/frontend/src/apis/loginAPI.js b/frontend/src/apis/loginAPI.js index d422fe3ff..91020ddbb 100644 --- a/frontend/src/apis/loginAPI.js +++ b/frontend/src/apis/loginAPI.js @@ -63,6 +63,15 @@ const loginAPI = { } return apiPost(CONFIG.LOGIN_API_URL + 'createUser', payload) }, + sendEmail: async (email, email_text = 7, email_verification_code_type = 'resetPassword') => { + //console.log('api email', email) + const payload = { + email, + email_text, + email_verification_code_type, + } + return apiPost(CONFIG.LOGIN_API_URL + 'sendEmail', payload) + }, } export default loginAPI diff --git a/frontend/src/routes/routes.js b/frontend/src/routes/routes.js index dc30e5754..adae0be07 100755 --- a/frontend/src/routes/routes.js +++ b/frontend/src/routes/routes.js @@ -9,7 +9,7 @@ const routes = [ }, { path: '/overview', - component: () => import('../views/KontoOverview.vue'), + component: () => import('../views/Pages/KontoOverview.vue'), meta: { requiresAuth: true, }, @@ -56,7 +56,11 @@ const routes = [ }, { path: '/password', - component: () => import('../views/Pages/Password.vue'), + component: () => import('../views/Pages/ForgotPassword.vue'), + }, + { + path: '/reset', + component: () => import('../views/Pages/ResetPassword.vue'), }, { path: '*', component: NotFound }, ] diff --git a/frontend/src/store/store.js b/frontend/src/store/store.js index f033921a9..357205847 100644 --- a/frontend/src/store/store.js +++ b/frontend/src/store/store.js @@ -48,7 +48,6 @@ export const store = new Vuex.Store({ state.user.balance_gdt = balance / 10000 }, }, - // Asyncronous actions - used for api calls actions: { login: async ({ dispatch, commit }, data) => { commit('session_id', data.session_id) diff --git a/frontend/src/views/Pages/Password.vue b/frontend/src/views/Pages/ForgotPassword.vue similarity index 79% rename from frontend/src/views/Pages/Password.vue rename to frontend/src/views/Pages/ForgotPassword.vue index 0db2a2725..d99d7731e 100644 --- a/frontend/src/views/Pages/Password.vue +++ b/frontend/src/views/Pages/ForgotPassword.vue @@ -26,17 +26,10 @@ :placeholder="$t('form.email')" name="Email" :rules="{ required: true, email: true }" - v-model="model.email" + v-model="form.email" > - {{ form }}
- + {{ $t('site.password.reset_now') }}
@@ -53,21 +46,26 @@ +