We're updating the issue view to help you get more done. 

Insufficient error message when creating password

Description

As an admin, I receive a vague "contact system administrator" message when incorrectly setting a user password.

Steps to reproduce:
1. Login as administrator to create a user
2. Click Create User, and set a password that only contains letters and no numbers (password requirements are that the password contains at least 8 characters, and one number). Click Save Password.
3. Once you click Save Password you receive an error "


4. Try to log in as the user, and you receive an error message that the credentials are incorrect.

Expected results: See for the create user steps. The administrator should receive the error message when they click save, and be able to change the password to match the requirements to successfully save.

Root Cause
The createPassword form does not return a promise. Create password should return the promise returned by authUserService.

Acceptance Criteria

  • Modal should show correct API error

Environment

uat.openlmis.org

Status

Assignee

Paweł Albecki

Reporter

Sam Im

Labels

Story Points

2

Time tracking

8h

Epic Link

Components

Sprint

None

Priority

Major