d2ac0798705a42d89569c956cc45ee22af664710
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>
Description
No description provided
Languages
Python
90.3%
HTML
6.2%
CSS
2.7%
JavaScript
0.6%
Dockerfile
0.2%