diff --git a/src/components/lib/problemTag.vue b/src/components/lib/problemTag.vue index d6acc6c0..74d51631 100644 --- a/src/components/lib/problemTag.vue +++ b/src/components/lib/problemTag.vue @@ -1,6 +1,6 @@ - {{content}} + {{content}} diff --git a/src/components/user/changePassword.vue b/src/components/user/changePassword.vue new file mode 100644 index 00000000..7642ef69 --- /dev/null +++ b/src/components/user/changePassword.vue @@ -0,0 +1,137 @@ + + + + + + New Password + + + + + + + Repeat New Password + + + + + + + + Old Password + + + + + + + + Change + + Reset + + + + + + + + diff --git a/src/components/user/register.vue b/src/components/user/register.vue index 01860066..4423ba7b 100644 --- a/src/components/user/register.vue +++ b/src/components/user/register.vue @@ -85,6 +85,9 @@ export default { } }; let validateUsername = (rule, value, callback) => { + if(value === '') { + callback(); + } this.$axios .get(apiurl('account/username/accessibility/' + value)) .then(() => { @@ -94,7 +97,7 @@ export default { if (err.request.status === 409) { callback(new Error('The user name is already in use')); } else { - callback(); + callback(new Error('Unkown Error')); } }); }; diff --git a/src/router.js b/src/router.js index 2c2c22c8..3b9d61d9 100644 --- a/src/router.js +++ b/src/router.js @@ -7,6 +7,9 @@ let router = new Router({ routes: [{ path: '/', component: () => import('./components/home/page.vue') + }, { + path: '/account/password', + component: () => import('./components/user/changePassword.vue') }, { path: '/account/:id', component: () => import('./components/user/content.vue')