From c3d2be342a720a53fc47d7e1208a88fb65c551f6 Mon Sep 17 00:00:00 2001 From: ogerly Date: Thu, 4 Mar 2021 16:16:20 +0100 Subject: [PATCH] password reset, translation german english --- frontend/src/locales/de.json | 11 ++++- frontend/src/locales/en.json | 9 ++++ frontend/src/routes/routes.js | 7 ++- frontend/src/store/store.js | 3 ++ frontend/src/views/Pages/Login.vue | 2 +- frontend/src/views/Pages/Password.vue | 70 +++++++++++++++++++++++++++ frontend/src/views/Pages/Register.vue | 2 +- frontend/src/views/Pages/thx.vue | 10 ++-- 8 files changed, 105 insertions(+), 9 deletions(-) create mode 100644 frontend/src/views/Pages/Password.vue diff --git a/frontend/src/locales/de.json b/frontend/src/locales/de.json index d71afe7b5..ba029fadc 100644 --- a/frontend/src/locales/de.json +++ b/frontend/src/locales/de.json @@ -7,7 +7,7 @@ "imprint":"Impressum", "privacy_policy":"Datenschutzerklärung", "license":"Lizenz", - "back":"back", + "back":"zurück", "form": { "firstname":"Vorname", "lastname":"Nachname", @@ -38,6 +38,15 @@ "strength":"Passwortsicherheit:", "strong":"stark", "agree":"habe ich gelesen und verstanden und stimme diesen zu." + }, + "password": { + "title": "Passwort zurücksetzen", + "subtitle": "Wenn sie das Passwort vergessen haben oder ändern möchten.", + "reset_now": "jetzt zurücksetzen" + }, + "thx": { + "title": "Danke!", + "subtitle": "Wir haben dir eine eMail gesendet." }, "overview":{ "account_overview":"Kontoübersicht", diff --git a/frontend/src/locales/en.json b/frontend/src/locales/en.json index caa7184ed..fe79fc4b9 100644 --- a/frontend/src/locales/en.json +++ b/frontend/src/locales/en.json @@ -39,6 +39,15 @@ "strong":"strong", "agree":"I have read and understood and agree to them the" }, + "password": { + "title": "reset password", + "subtitle": "If you have forgotten the password or want to change it.", + "reset_now": "reset now" + }, + "thx": { + "title": "Thank you", + "subtitle": "We have sent you an eMail." + }, "overview":{ "account_overview":"Account overview", "current_balance":"Current account balance", diff --git a/frontend/src/routes/routes.js b/frontend/src/routes/routes.js index 086910286..e38726b7d 100755 --- a/frontend/src/routes/routes.js +++ b/frontend/src/routes/routes.js @@ -25,7 +25,12 @@ const routes = [ path: '/register', name: 'register', component: () => import('../views/Pages/Register.vue') - }, + }, + { + path: '/password', + name: 'password', + component: () => import('../views/Pages/Password.vue') + } ] }, { diff --git a/frontend/src/store/store.js b/frontend/src/store/store.js index 76a50bc2c..e9e13726a 100644 --- a/frontend/src/store/store.js +++ b/frontend/src/store/store.js @@ -72,6 +72,9 @@ export const store = new Vuex.Store({ dispatch('logout') } }, + passwordReset: async (data) => { + console.log("<<<<<<<<<<< PASSWORT RESET TODO >>>>>>>>>>>", data.email) + }, createUser: async ({ commit, dispatch }, data) => { console.log('action: createUser') const result = await loginAPI.create(data.email,data.first_name,data.last_name,data.password) diff --git a/frontend/src/views/Pages/Login.vue b/frontend/src/views/Pages/Login.vue index b60343d26..b5605cd59 100755 --- a/frontend/src/views/Pages/Login.vue +++ b/frontend/src/views/Pages/Login.vue @@ -61,7 +61,7 @@ - {{ $t('site.login.forgot_pwd')}} + {{ $t('site.login.forgot_pwd')}} {{ $t('site.login.new_wallet')}} diff --git a/frontend/src/views/Pages/Password.vue b/frontend/src/views/Pages/Password.vue new file mode 100644 index 000000000..dff79274f --- /dev/null +++ b/frontend/src/views/Pages/Password.vue @@ -0,0 +1,70 @@ + + + diff --git a/frontend/src/views/Pages/Register.vue b/frontend/src/views/Pages/Register.vue index e5dd7efb7..848506769 100755 --- a/frontend/src/views/Pages/Register.vue +++ b/frontend/src/views/Pages/Register.vue @@ -88,7 +88,7 @@
- zurück + {{ $t('back')}}
diff --git a/frontend/src/views/Pages/thx.vue b/frontend/src/views/Pages/thx.vue index 78f4701b1..f11e0c8df 100644 --- a/frontend/src/views/Pages/thx.vue +++ b/frontend/src/views/Pages/thx.vue @@ -4,11 +4,11 @@
-

Danke für die Anmeldung

-

Bitte prüfe deine Mail und bestäige diese Anmeldung letztmalig. Dann kannst du dich in deiner Gradido Wallet einloggen.

- - zum Login - +

{{$t('site.thx.title')}}

+

{{$t('site.thx.subtitle')}}

+
+ {{$t('login')}} +