mirror of
https://github.com/lordmathis/lemma.git
synced 2025-11-06 07:54:22 +00:00
Retrieve pass hash from db
This commit is contained in:
@@ -93,10 +93,6 @@ func (h *Handler) UpdateProfile() http.HandlerFunc {
|
||||
return
|
||||
}
|
||||
user.PasswordHash = string(hashedPassword)
|
||||
} else if req.CurrentPassword != "" {
|
||||
// If current password is provided but no new password, that's an error
|
||||
http.Error(w, "New password is required when current password is provided", http.StatusBadRequest)
|
||||
return
|
||||
}
|
||||
|
||||
// Handle email update if requested
|
||||
|
||||
Reference in New Issue
Block a user