itu-bswu / RentIt

Digital media rental service (academic project)
4 stars 0 forks source link

Duplicate usernames #1

Closed NiklasHansen closed 12 years ago

NiklasHansen commented 12 years ago

When trying to create a user, with a username that already exists, the system fails. The bug arises because the username field in the database is set as unique, but Entity Framework doesn't support unique fields (yet).

Possible fix is to do a check in the code. Possible improvement of SignUp, would be to instead return an enum. This enum could contain: