Project

General

Profile

feature request #7276

Updated by Andreas Müller over 1 year ago

Make User.email a unique field.

In the context of password recovery it seems also a requirement to make the email address unique in the UserAccount table.
In order to recover a password the user can usually either supply the login or email address.

NOTE: As long as #7275 is not implemented or if it is rejected it is NOT possible to implement by standard

~~~ sql
@Column(unique = true)
~~~

as NULL values are duplicates otherwise.

Back

Add picture from clipboard (Maximum size: 40 MB)