fix typo, to return correct error msg from updateUserPassword (#6861)

This commit is contained in:
Nikolay Dyakov 2019-07-24 19:58:26 +03:00 committed by Jeff Mitchell
parent 52ca04b968
commit 137e1492e2
1 changed files with 1 additions and 1 deletions

View File

@ -199,7 +199,7 @@ func (b *backend) userCreateUpdate(ctx context.Context, req *logical.Request, d
if _, ok := d.GetOk("password"); ok {
userErr, intErr := b.updateUserPassword(req, d, userEntry)
if intErr != nil {
return nil, err
return nil, intErr
}
if userErr != nil {
return logical.ErrorResponse(userErr.Error()), logical.ErrInvalidRequest