[PR #2334] [MERGED] Failed authentication are now properly logged #16347

Closed
opened 2025-11-02 12:08:29 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/2334
Author: @daviian
Created: 8/18/2017
Status: Merged
Merged: 8/24/2017
Merged by: @lafriks

Base: masterHead: auth-failed-statuscode


📝 Commits (1)

  • fc83835 Log failed authentication attempts with remote address for fail2ban

📊 Changes

1 file changed (+2 additions, -0 deletions)

View changed files

📝 routers/user/auth.go (+2 -0)

📄 Description

Targets #2301

Failed authentication now returns 401 status code.
Done by introducing a new RenderFormWithErr function in context to allow passing of a statuscode

Tested in following browsers:

  • Latest version of FF, Chrome and Safari Mac
  • IE 11
  • Chrome for Android Latest
  • Microsoft Edge 12

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/gitea/pull/2334 **Author:** [@daviian](https://github.com/daviian) **Created:** 8/18/2017 **Status:** ✅ Merged **Merged:** 8/24/2017 **Merged by:** [@lafriks](https://github.com/lafriks) **Base:** `master` ← **Head:** `auth-failed-statuscode` --- ### 📝 Commits (1) - [`fc83835`](https://github.com/go-gitea/gitea/commit/fc83835f967aefdfd6afd331fa7ce1b12251a8e0) Log failed authentication attempts with remote address for fail2ban ### 📊 Changes **1 file changed** (+2 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `routers/user/auth.go` (+2 -0) </details> ### 📄 Description Targets #2301 Failed authentication now returns 401 status code. Done by introducing a new RenderFormWithErr function in context to allow passing of a statuscode Tested in following browsers: - Latest version of FF, Chrome and Safari Mac - IE 11 - Chrome for Android Latest - Microsoft Edge 12 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 12:08:29 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#16347