Bastian Wagner d2ac079870 fix: reject empty credential fields with 400 instead of 500
Add an explicit non-empty check before encrypting user-submitted
email/password fields in the create and update user routes, so a
request that bypasses the HTML `required` attribute gets a clean
400 instead of an unhandled ValueError from CredentialCipher.encrypt
propagating as a 500. Applies to all four credential fields on
create, and to the two email fields on update (the password-blank-
means-keep-existing behavior on update is unchanged).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-15 09:50:05 +02:00
2026-08-15 09:07:40 +02:00
2026-08-15 09:04:38 +02:00
Description
No description provided
434 KiB
Languages
Python 90.3%
HTML 6.2%
CSS 2.7%
JavaScript 0.6%
Dockerfile 0.2%