]> git.immae.eu Git - github/wallabag/wallabag.git/commit
Remove ability to change username 1164/head
authorJeremy <jeremy.benoist@gmail.com>
Fri, 27 Mar 2015 23:10:39 +0000 (00:10 +0100)
committerJeremy <jeremy.benoist@gmail.com>
Wed, 1 Apr 2015 19:23:27 +0000 (21:23 +0200)
commitc844dc0c50bb4f1044154401310af25eb21b0f11
treea4572193af600a8170b220c0c186bc46d6dd3d8e
parent1a93ee423b072ec3bcb0c437cbf9b488bdea245c
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
src/Wallabag/CoreBundle/Controller/ConfigController.php
src/Wallabag/CoreBundle/Entity/User.php
src/Wallabag/CoreBundle/Form/Type/UserInformationType.php [moved from src/Wallabag/CoreBundle/Form/Type/UserType.php with 87% similarity]
src/Wallabag/CoreBundle/Resources/views/Config/index.html.twig
src/Wallabag/CoreBundle/Tests/Controller/ConfigControllerTest.php