balena-io / open-balena-api

The core API of openBalena
https://balena.io/open
GNU Affero General Public License v3.0
58 stars 29 forks source link

Allow registering user with `null` email #1656

Closed otaviojacobi closed 3 months ago

otaviojacobi commented 3 months ago

user (Auth) email is a nullable property. However, instead of using the actual null current API behaviour forces it to be an empty string. This is problematic as ideally the email field would have a unique constraint to it (and NULL value is considered distinct by default, different than empty string)

Change-type: minor