mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-04-26 01:35:54 +03:00
[PR #2729] [MERGED] Change the handling of login errors. #3137
Labels
No labels
SSO
Third party
better for forum
bug
bug
documentation
duplicate
enhancement
future Vault
future Vault
future Vault
good first issue
help wanted
low priority
notes
pull-request
question
troubleshooting
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vaultwarden#3137
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/dani-garcia/vaultwarden/pull/2729
Author: @BlackDex
Created: 9/6/2022
Status: ✅ Merged
Merged: 9/8/2022
Merged by: @dani-garcia
Base:
main← Head:vw-admin-updates📝 Commits (1)
5a05139Change the handling of login errors.📊 Changes
6 files changed (+262 additions, -1205 deletions)
View changed files
📝
src/api/admin.rs(+29 -17)📝
src/api/web.rs(+2 -2)📝
src/static/scripts/bootstrap.css(+120 -1103)📝
src/static/scripts/jquery-3.6.1.slim.js(+109 -81)📝
src/static/templates/admin/organizations.hbs(+1 -1)📝
src/static/templates/admin/users.hbs(+1 -1)📄 Description
Previously FlashMessage was used to provide an error message during login.
This PR changes that flow to not use redirect for this, but renders the HTML and responds using the correct status code where needed. This should solve some issues which were reported in the past.
Thanks to @RealOrangeOne, for initiating this with a PR.
Fixes #2448
Fixes #2712
Closes #2715
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.