mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-07-18 01:49:32 -05:00
[PR #2864] [CLOSED] validate billing_email on save #25381
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/2864
Author: @stefan0xC
Created: 10/25/2022
Status: ❌ Closed
Base:
main← Head:validate-email📝 Commits (1)
14bcbdcvalidate billing_email on save📊 Changes
3 files changed (+9 additions, -0 deletions)
View changed files
📝
Cargo.lock(+4 -0)📝
Cargo.toml(+1 -0)📝
src/db/models/organization.rs(+4 -0)📄 Description
As discussed in #2849 the billing email address should be validated server-side since the client does not currently check the field when updating it.
The same validation could be used for user.email but not sure if this is needed.
As far as I've tested it, this change should only affect creating and updating organizations as the organization itself is not saved in other functions but I might have missed something.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.