update actions tab to include new way to surface password change

This commit is contained in:
Cam
2024-02-15 14:47:38 -06:00
parent 338b5a0936
commit 2daed61849
3 changed files with 57 additions and 38 deletions

View File

@ -52,7 +52,7 @@ func (handler *changePasswordHandler) Handle(params account.ChangePasswordParams
return account.NewChangePasswordUnprocessableEntity().WithPayload(rest_model_zrok.ErrorMessage(err.Error()))
}
nhpwd, err := hashPassword(params.Body.NewPassword)
nhpwd, err := HashPassword(params.Body.NewPassword)
if err != nil {
logrus.Errorf("error hashing password for '%v': %v", a.Email, err)
return account.NewChangePasswordInternalServerError()