bitshares / bitshares-community-ui

[Worker Proposal] Light and 100% Responsive, BitShares Community DEX/UI - based on Vue.js Framework
MIT License
16 stars 10 forks source link

Change Password: not working correctly #393

Closed roma219 closed 5 years ago

roma219 commented 5 years ago

image Why is the button blocked? Something wrong with some data in inputs? In which one? Or there is a bug? Not clear at all.

We need to improve this.

Use vuelidate: https://monterail.github.io/vuelidate Read through it carefully - it has everything that is needed.

Choose the right validators for each field: required, sameAs & create your own validator for regexp and checking the old password.

Generate error messages based on each field's validators valid state & display underneath the field.

Also: 1) Make CHANGE PASSWORD dropdown item disabled for non-wallet user types instead of doing in created callback and showing a flash message