ID 422415 - [S] Management Console: A deleted user won't be able to log in after being readded

Follow

Problem summary
If a username is deleted in the Flix management console, that same username can't be recreated.
 
Customer reported version
6.2.1
 
Customer reported platform
Multiple
 
Steps to reproduce
1. Log in the Management Console
2. Create a user
3. Delete that user
4. Recreate the same user
5. Trying to log in with that user will show a Server error stating the following:
WARN[340562] userRepository.Authenticate: cannot authenticate deleted user
ERRO[340562] BaseController.basicAuthHandler: could not authenticate request  error="authentication failed"
 
 
Expected behaviour
When a user is recreated with the same username as a deleted user, log in should still be successful.
 
Actual behaviour
Log in is unsuccessful
 
Reproduced by support
6.2.2 - Windows 10 Client - CentOS 7 Server
6.2.1 - Windows 10 Client - CentOS 7 Server
 
Workaround
1. Connect to your database via the MySQL Workbench
2. Go to the "user" schema
3. Find the recreated user and in the "deleted" column change the 1 into a 0
4. Apply the change (bottom right corner of the table)

    We're sorry to hear that

    Please tell us why