Skip to content

Conversation

sandhose
Copy link
Member

This includes:

  • displaying the list of upstream providers on failed password logins
  • showing a proper 'account deactivated' or 'account locked' page
  • show the generic error page on 500-like errors

Fixes #3728

This includes:
 - displaying the list of upstream providers on failed password logins
 - showing a proper 'account deactivated' or 'account locked' page
 - show the generic error page on 500-like errors
@sandhose sandhose added A-Login-Flow Related to the user login flow T-Enhancement New feature of request labels Mar 12, 2025
@sandhose sandhose requested a review from reivilibre March 12, 2025 09:23
@cloudflare-workers-and-pages
Copy link

Deploying matrix-authentication-service-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 4510ab4
Status: ✅  Deploy successful!
Preview URL: https://8f44ef4d.matrix-authentication-service-docs.pages.dev
Branch Preview URL: https://quenting-better-login-feedba.matrix-authentication-service-docs.pages.dev

View logs


// At this point, we should have a 'valid' user. In case we missed something, we
// want it to crash in tests/debug builds
debug_assert!(user.is_valid());
Copy link
Contributor

Choose a reason for hiding this comment

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

tbh, I'd be in favour of making this a full-blown assert.

I'd only use debug_assert for perf reasons, which doesn't seem to apply here.

Copy link
Member Author

Choose a reason for hiding this comment

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

I get that, but I also kinda want tasks to not panic as much as possible? Alternative is to bubble up a proper Error but 🤷

@sandhose sandhose merged commit 1130b4b into main Mar 12, 2025
30 checks passed
@sandhose sandhose deleted the quenting/better-login-feedback branch March 12, 2025 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Login-Flow Related to the user login flow T-Enhancement New feature of request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Returning federated user prompted for password that does not exist

2 participants