harden(db): case-insensitive email unique index + dup-email test; list_users pagination TODO; from_db note

This commit is contained in:
2026-06-02 14:42:04 +02:00
parent f8ec2d7cf1
commit bea9b6b39a
4 changed files with 43 additions and 4 deletions
+3
View File
@@ -56,6 +56,9 @@ impl Email {
}
/// Reconstruct from a stored (already-validated) value, without re-validating.
/// For reading values back from the database only — never to construct an `Email`
/// destined to be written (writes must go through [`Email::parse`] so storage
/// stays normalized).
pub fn from_db(value: String) -> Email {
Email(value)
}