Skip to content

Fix wrong status code on failed login - #9566

Merged
Alkarex merged 1 commit into
FreshRSS:edgefrom
Inverle:fix-wrong-login-status-code
Nov 15, 2026
Merged

Alkarex merged 1 commit into
FreshRSS:edgefrom
Inverle:fix-wrong-login-status-code

Conversation

@Inverle

@Inverle Inverle commented Nov 15, 2026

Copy link
Copy Markdown
Member

Regression from #9358 (PR not present in current release, stopped sending 403 on failed logins).

This PR fixes the Minz bug mentioned in #9358 (comment) which occurred with redirect: false redirects.

But it also takes a different approach for redirecting, by using HTML instead of the Location header (to address one additional issue with a resubmit prompt appearing when refreshing the login page after a failed login).

403 is now returned during failed reauthentication as well.

@Inverle
Inverle force-pushed the fix-wrong-login-status-code branch from 0606e16 to 2d36481 Compare November 15, 2026 00:45
@Inverle Inverle added the Minz Pull requests that update Minz code label Nov 15, 2026
@Alkarex
Alkarex merged commit 06c0329 into FreshRSS:edge Nov 15, 2026
4 checks passed
@Inverle
Inverle deleted the fix-wrong-login-status-code branch November 15, 2026 22:54
@Alkarex

Alkarex commented Nov 16, 2026

Copy link
Copy Markdown
Member

Regression:

@Inverle

Inverle commented Nov 16, 2026

Copy link
Copy Markdown
Member Author

Will take a look, but it doesn't sound like it's caused by this PR.

Alkarex pushed a commit that referenced this pull request Nov 16, 2026
Fixes #4095

Follow-up of #9566

Although no separate error message for disabled users yet (will be done in another PR).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug (confirmed) 🐞 issues that are reproducible Minz Pull requests that update Minz code Security 🛡️

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants