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:
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: