mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-05-08 23:14:39 -05:00
[PR #2729] [MERGED] Change the handling of login errors. #8075
Reference in New Issue
Block a user
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.