From d40c3b2e444cc7c60e68ef2dce6233515eb19a43 Mon Sep 17 00:00:00 2001 From: Jose Celano Date: Mon, 3 Jun 2024 19:29:12 +0100 Subject: [PATCH] feat: [#468] allow users to change the password --- .eslintignore | 4 +- components/navigation/NavigationBar.vue | 3 + components/user/ChangePasswordForm.vue | 116 ++++++++++++++++++++++++ pages/user/[username].vue | 15 +++ 4 files changed, 137 insertions(+), 1 deletion(-) create mode 100644 components/user/ChangePasswordForm.vue create mode 100644 pages/user/[username].vue diff --git a/.eslintignore b/.eslintignore index 3fcdfade..f55ecf84 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1 +1,3 @@ -/share/container/health_check.js \ No newline at end of file +/share/container/health_check.js +../torrust-index-api-lib +../torrust-index-types-lib diff --git a/components/navigation/NavigationBar.vue b/components/navigation/NavigationBar.vue index 03898bd2..bd94cff2 100644 --- a/components/navigation/NavigationBar.vue +++ b/components/navigation/NavigationBar.vue @@ -34,6 +34,9 @@
  • Admin Settings
  • +
  • + Change password +
  • Help
  • Logout {{ user.username }}
  • diff --git a/components/user/ChangePasswordForm.vue b/components/user/ChangePasswordForm.vue new file mode 100644 index 00000000..0e458a65 --- /dev/null +++ b/components/user/ChangePasswordForm.vue @@ -0,0 +1,116 @@ + + + + + diff --git a/pages/user/[username].vue b/pages/user/[username].vue new file mode 100644 index 00000000..2561c45d --- /dev/null +++ b/pages/user/[username].vue @@ -0,0 +1,15 @@ + + + + +