Skip to content

fix: Show error message when CSRF check fails at login - #40799

Merged
ChristophWurst merged 1 commit into
masterfrom
fix/login-csrf-check-error-message
Nov 8, 2023
Merged

fix: Show error message when CSRF check fails at login#40799
ChristophWurst merged 1 commit into
masterfrom
fix/login-csrf-check-error-message

Conversation

@ChristophWurst

@ChristophWurstChristophWurst commented Oct 6, 2023

Copy link
Copy Markdown
Member

Summary

This is also known as the "double login"

How to test

  1. Be logged out
  2. Open the login page
  3. Clear browser cookies
  4. Enter credentials and submit the form

master: you see the same page again, no changes
here: you see the same page again but with an error message

BeforeAfter
Bildschirmfoto vom 2023-10-06 10-52-06Bildschirmfoto vom 2023-10-06 12-41-26

Checklist

@ChristophWurst

Copy link
Copy Markdown
MemberAuthor

/backport to stable27

@ChristophWurst

Copy link
Copy Markdown
MemberAuthor

/backport to stable26

@ChristophWurstChristophWurst mentioned this pull request Oct 6, 2023
8 tasks
@ChristophWurstChristophWurst added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Oct 6, 2023
@solracsf

Copy link
Copy Markdown
Member

I would recommend a message like "Internal checks failed. Please try again.".
Why ? Because at least user knows this is not a password or user problem, but a temporary server (internal) issue.

@ChristophWurst

Copy link
Copy Markdown
MemberAuthor

Adjusted. I also fixed that the NcNoteCard was used incorrectly.

@ChristophWurst
ChristophWurstforce-pushed the fix/login-csrf-check-error-message branch from cb08db2 to 129c7b7CompareOctober 9, 2023 10:32
@ChristophWurst

Copy link
Copy Markdown
MemberAuthor

/compile amend /

@ChristophWurst
ChristophWurstforce-pushed the fix/login-csrf-check-error-message branch from 129c7b7 to 4d0e11eCompareOctober 10, 2023 09:37
@ChristophWurst

Copy link
Copy Markdown
MemberAuthor

/rebase

@ChristophWurst
ChristophWurstforce-pushed the fix/login-csrf-check-error-message branch 3 times, most recently from 1fe02f9 to e7d8876CompareOctober 17, 2023 18:33
@skjnldsvskjnldsv mentioned this pull request Nov 1, 2023
@ChristophWurst
ChristophWurstforce-pushed the fix/login-csrf-check-error-message branch from e7d8876 to 269dc52CompareNovember 2, 2023 09:44
@blizzzblizzz mentioned this pull request Nov 6, 2023
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4. to releaseReady to be released and/or waiting for tests to finishbugfeature: authentication

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

5 participants

@ChristophWurst@solracsf@miaulalala@skjnldsv@provokateurin