diff --git a/src/router/index.js b/src/router/index.js index a997791d..30220e6c 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -17,6 +17,7 @@ import Messages from '@/views/Messages.vue' import PostSearch from '@/views/PostSearch.vue' import Join from '@/views/Join.vue' import ConfirmAccount from '@/views/ConfirmAccount.vue' +import ResetPassword from '@/views/ResetPassword.vue' import Profile from '@/views/Profile.vue' import Forbidden from '@/views/layout/Forbidden.vue' import NotFound from '@/views/layout/NotFound.vue' @@ -49,7 +50,14 @@ const routes = [ props: true, meta: { requiresAuth: false, bodyClass: 'confirm' } }, - { + { + path: '/reset/:username/:token', + name: 'ResetPassword', + component: ResetPassword, + props: true, + meta: { requiresAuth: false, bodyClass: 'reset' } + }, + { path: '/join', name: 'Join', component: Join, diff --git a/src/views/ResetPassword.vue b/src/views/ResetPassword.vue new file mode 100644 index 00000000..c0ffb18a --- /dev/null +++ b/src/views/ResetPassword.vue @@ -0,0 +1,156 @@ + + + + Reset Password + + + + + + Password + + Password must be at least 8 characters + + + Password and confirmation do not match + + + + + + + + + + + + + + + + Confirm Password + + Confirmation must be at least 8 characters + + + Password and confirmation do not match + + + + + + + + + + + + + + Reset Password + + + + + + + + + +