Skip to content

fix(login): Improve CSRF error message for better user understanding - #51697

Merged
nfebe merged 2 commits into
masterfrom
enh/no-issue/better-error-for-login-csrf
Mar 25, 2025
Merged

fix(login): Improve CSRF error message for better user understanding#51697
nfebe merged 2 commits into
masterfrom
enh/no-issue/better-error-for-login-csrf

Conversation

@nfebe

Copy link
Copy Markdown
Contributor

Looking at thee client/backend the only reason why a user would see this message is if the csrf fails so the message should be much more specific.

This commit changes the CSRF error message displayed in the login form to
provide more specific information to the user. Instead of the generic less helpful error.
Signed-off-by: nfebe <fenn25.fn@gmail.com>

@marcoambrosinimarcoambrosini left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

noice!

@nfebe

Copy link
Copy Markdown
ContributorAuthor

/compile

Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
@nfebe
nfebe enabled auto-merge March 25, 2025 14:17
@nfebe
nfebe merged commit 652b0cc into masterMar 25, 2025
@nfebe
nfebe deleted the enh/no-issue/better-error-for-login-csrf branch March 25, 2025 14:47
@nfebe

Copy link
Copy Markdown
ContributorAuthor

/backport to stable31

@nfebe

Copy link
Copy Markdown
ContributorAuthor

/backport to stable30

@nfebe

Copy link
Copy Markdown
ContributorAuthor

/backport to stable29

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: 🏗️ In progress

Development

Successfully merging this pull request may close these issues.

6 participants

@nfebe@AndyScherzinger@Altahrim@skjnldsv@marcoambrosini@nextcloud-command