mirror of
https://github.com/wallabag/wallabag.git
synced 2025-08-11 17:51:02 +00:00
Remove ability to change username
Since password are linked to username it was hard to change username while checking that the password is the good one. Instead of doing crazy things to achieve that, I act that user won't be able to update username. Also, username (and email) must be unique, since people logged in using username and can request a new password using email. This should fix #1149
This commit is contained in:
parent
1a93ee423b
commit
c844dc0c50
5 changed files with 25 additions and 33 deletions
|
@ -9,7 +9,7 @@ use Symfony\Component\HttpFoundation\JsonResponse;
|
|||
use Wallabag\CoreBundle\Entity\Config;
|
||||
use Wallabag\CoreBundle\Entity\User;
|
||||
use Wallabag\CoreBundle\Form\Type\ChangePasswordType;
|
||||
use Wallabag\CoreBundle\Form\Type\UserType;
|
||||
use Wallabag\CoreBundle\Form\Type\UserInformationType;
|
||||
use Wallabag\CoreBundle\Form\Type\NewUserType;
|
||||
use Wallabag\CoreBundle\Form\Type\RssType;
|
||||
use Wallabag\CoreBundle\Tools\Utils;
|
||||
|
@ -65,7 +65,7 @@ class ConfigController extends Controller
|
|||
}
|
||||
|
||||
// handle changing user information
|
||||
$userForm = $this->createForm(new UserType(), $user);
|
||||
$userForm = $this->createForm(new UserInformationType(), $user);
|
||||
$userForm->handleRequest($request);
|
||||
|
||||
if ($userForm->isValid()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue