summaryrefslogtreecommitdiff
path: root/app/ServiceProvider/RouteProvider.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-05-18 21:27:36 -0400
committerFrederic Guillot <fred@kanboard.net>2016-05-18 21:27:36 -0400
commitbfd59d9e544028a1ea041806fd60e112f3a90167 (patch)
tree0576ae4c6a948cd6af882b23da6073dfef1cae2c /app/ServiceProvider/RouteProvider.php
parent0830fe22b777e419e42cfb3349e61098be9e4127 (diff)
Reset failed login counter and unlock user when changing password
Diffstat (limited to 'app/ServiceProvider/RouteProvider.php')
-rw-r--r--app/ServiceProvider/RouteProvider.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/ServiceProvider/RouteProvider.php b/app/ServiceProvider/RouteProvider.php
index 2bf3b6db..eb567e46 100644
--- a/app/ServiceProvider/RouteProvider.php
+++ b/app/ServiceProvider/RouteProvider.php
@@ -149,13 +149,13 @@ class RouteProvider implements ServiceProviderInterface
$container['route']->addRoute('user/show/:user_id/timesheet', 'UserViewController', 'timesheet');
$container['route']->addRoute('user/show/:user_id/last-logins', 'UserViewController', 'lastLogin');
$container['route']->addRoute('user/show/:user_id/sessions', 'UserViewController', 'sessions');
- $container['route']->addRoute('user/:user_id/edit', 'UserViewController', 'edit');
- $container['route']->addRoute('user/:user_id/password', 'UserViewController', 'password');
+ $container['route']->addRoute('user/:user_id/edit', 'UserModificationController', 'show');
+ $container['route']->addRoute('user/:user_id/password', 'UserCredentialController', 'changePassword');
$container['route']->addRoute('user/:user_id/share', 'UserViewController', 'share');
$container['route']->addRoute('user/:user_id/notifications', 'UserViewController', 'notifications');
$container['route']->addRoute('user/:user_id/accounts', 'UserViewController', 'external');
$container['route']->addRoute('user/:user_id/integrations', 'UserViewController', 'integrations');
- $container['route']->addRoute('user/:user_id/authentication', 'UserViewController', 'authentication');
+ $container['route']->addRoute('user/:user_id/authentication', 'UserCredentialController', 'changeAuthentication');
$container['route']->addRoute('user/:user_id/2fa', 'twofactor', 'index');
$container['route']->addRoute('user/:user_id/avatar', 'AvatarFile', 'show');