Skip to content

Commit

Permalink
fix: show correct error message when deleting user
Browse files Browse the repository at this point in the history
  • Loading branch information
LuccaBitfly committed Jan 22, 2025
1 parent 354bc3d commit 5316074
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handlers/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -1035,7 +1035,7 @@ func UserDeletePost(w http.ResponseWriter, r *http.Request) {

err = db.DeleteUserById(user.UserID)
if err != nil {
logger.Errorf("error deleting user by email for user: %v %v", user.UserID, err)
logger.Errorf("error deleting user by id for user: %v %v", user.UserID, err)
utils.SetFlash(w, r, authSessionName, "Error: Could not delete user.")
http.Redirect(w, r, "/user/settings", http.StatusSeeOther)
return
Expand Down

0 comments on commit 5316074

Please sign in to comment.