eugenesimakin / link-sharing-app

0 stars 0 forks source link

Enforce username to be unique #12

Closed eugenesimakin closed 11 months ago

eugenesimakin commented 11 months ago

The username as a part of public user url should be unique when provided on registration.

eugenesimakin commented 11 months ago

Note: The unique property is already enforced. Need to create good UX.

@Column(name = "username", nullable = false, unique = true)
Washubrnfg85 commented 11 months ago

I noticed that. But I did it the same way as email validation - with conditional check in Controller. If you assume something else here, please tell me. Maybe I'll learn some new stuff.