From e3c3efddf204d3d256585ec064aaba236cf2ae67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Gr=C3=B6ger?= Date: Sun, 28 Jun 2020 12:33:05 +0200 Subject: [PATCH] =?UTF-8?q?add=20ResetPassword.vue=20zum=20resetten=20der?= =?UTF-8?q?=20Passw=C3=B6rter.=20au=C3=9Ferdem=20wurde=20der=20link=20im?= =?UTF-8?q?=20Copyright=20=C3=BCberarbeitet.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 16 +++- src/components/ResetPassword.vue | 146 +++++++++++++++++++++++++++++++ src/components/TitleBar.vue | 11 ++- src/plugins/routes.js | 1 + src/router/index.js | 6 ++ src/views/Login.vue | 1 + 6 files changed, 174 insertions(+), 7 deletions(-) create mode 100644 src/components/ResetPassword.vue diff --git a/src/App.vue b/src/App.vue index 523ad2d..167b0b3 100644 --- a/src/App.vue +++ b/src/App.vue @@ -3,9 +3,12 @@ - © {{ new Date().getFullYear() }} Studentenclub Wu5 e.V. - + © {{ new Date().getFullYear() }} + + Studentenclub Wu5 e.V. + + Impressum @@ -13,7 +16,12 @@ Datenschutzerklärung - + Bugs? diff --git a/src/components/ResetPassword.vue b/src/components/ResetPassword.vue new file mode 100644 index 0000000..2eb7cc1 --- /dev/null +++ b/src/components/ResetPassword.vue @@ -0,0 +1,146 @@ + + + + + diff --git a/src/components/TitleBar.vue b/src/components/TitleBar.vue index 89f3e54..2acecd9 100644 --- a/src/components/TitleBar.vue +++ b/src/components/TitleBar.vue @@ -14,7 +14,12 @@ Flaschengeist - + + + mdi-home + + + {{ back }} @@ -79,9 +84,9 @@ export default { goTo(name) { this.$router.push({name: name}) }, - goHome() { + goBack() { window.history.length > 1 ? this.$router.go(-1) : this.$router.push({name: 'main'}) - } + }, } } diff --git a/src/plugins/routes.js b/src/plugins/routes.js index f36b032..0128670 100644 --- a/src/plugins/routes.js +++ b/src/plugins/routes.js @@ -27,6 +27,7 @@ const url = { userAddAmount: main + 'user/addAmount', saveLifeTime: main + 'saveLifeTime', getLifeTime: main + 'getLifeTime', + resetPassword: main + 'passwordReset', vorstand: { sm: { addUser: main + 'sm/addUser', diff --git a/src/router/index.js b/src/router/index.js index 678891c..108690d 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -25,12 +25,18 @@ import UserManager from '@/components/vorstand/UserManager' import WorkgroupManagement from '@/components/vorstand/WorkgroupManagement' import JobKindManager from '@/components/vorstand/JobKindManager' import JobsRequest from '@/components/user/JobsRequest' +import ResetPassword from "@/components/ResetPassword"; Vue.use(VueRouter) const rootPath = '' const routes = [ + { + path: rootPath + '/resetPassword', + name: 'resetPassword', + component: ResetPassword + }, { path: rootPath + '/cookies', name: 'cookies' diff --git a/src/views/Login.vue b/src/views/Login.vue index 5909592..f391be5 100644 --- a/src/views/Login.vue +++ b/src/views/Login.vue @@ -51,6 +51,7 @@ loginError }} + Password vergessen?