Username is already used - forces logout
lookbadgers opened this issue · 1 comments
lookbadgers commented
Symfony FOSUserBundle versions: 2.1.2 with Symfony 4.4
The user is being incorrectly logged out when trying to change their username to one that already exists. They see the error message The username is already used. but they are logged out and have to login again before trying again.
Steps to reproduce:
- composer create-project symfony/website-skeleton:^4.4 test
- composer require friendsofsymfony/user-bundle "~2.1"
- follow setup https://github.com/FriendsOfSymfony/FOSUserBundle/blob/v2.1.2/Resources/doc/index.rst
- Create two users
- Login - fos_user_security_login /login
- Edit profile - fos_user_profile_edit /profile/edit
- Change username to other user, the error
The username is already used.
is displayed and the user is logged out.
lookbadgers commented
Any more information needed? Or is this a user error?