summaryrefslogtreecommitdiffstats
path: root/app/common/directives/serial-console.js
diff options
context:
space:
mode:
authorbeccabroek <beccabroek@gmail.com>2019-03-22 15:38:49 -0500
committerGunnar Mills <gmills@us.ibm.com>2019-04-05 19:56:23 +0000
commita5deeeafe84893722d601b2343943eb78f263e4f (patch)
tree467be7aeae3a452abd67f04495a7052883291be0 /app/common/directives/serial-console.js
parent2f481e4cb83f0c72a9f3aad11431e4abcf5d632c (diff)
downloadphosphor-webui-a5deeeafe84893722d601b2343943eb78f263e4f.tar.gz
phosphor-webui-a5deeeafe84893722d601b2343943eb78f263e4f.zip
Add form validation and toast messages to user mgmt
Adds form field validation with ng-messages and toast messages with toast service to the User management page. Also adds check that the number of users does not exceed 15 and that the username does not already exist prior to sending call to the backend. Resolves openbmc/phosphor-webui#73 Resolves openbmc/phosphor-webui#74 Tested: Able to add/delete/edit users as before. Page presents appropriate message to user upon creating or updating a user when: 1. A field is missing 2. Passwords don't match 3. Password is longer than max or shorter than min 4. Username already exists when creating new user 5. User tries to create the 16th user Change-Id: I5ae1a7979f7a396b0fb2ea280b875afc805a7f9f Signed-off-by: beccabroek <beccabroek@gmail.com>
Diffstat (limited to 'app/common/directives/serial-console.js')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud