Skip to content

Commit 2aa7002

Browse files
committed
fix: more user friendly message
1 parent 93722eb commit 2aa7002

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/api/user.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ func (a *API) UserUpdate(w http.ResponseWriter, r *http.Request) error {
191191
return err
192192
}
193193
if !isCurrentPasswordCorrect {
194-
return apierrors.NewBadRequestError(apierrors.ErrorCodeCurrentPasswordMismatch, "Current password required when setting new password.")
194+
return apierrors.NewBadRequestError(apierrors.ErrorCodeCurrentPasswordMismatch, "A valid current password required when setting new password.")
195195
}
196196
}
197197
}

0 commit comments

Comments
 (0)