fix typo, to return correct error msg from updateUserPassword (#6861)
This commit is contained in:
parent
52ca04b968
commit
137e1492e2
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue