summaryrefslogtreecommitdiffstats
path: root/settings/routes.php
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2016-08-17 11:50:41 +0200
committerGitHub <noreply@github.com>2016-08-17 11:50:41 +0200
commitc5d0a056de10622b4d5f94deef8a25e95dfb8371 (patch)
tree24139b523335b66b9c3da77c91685438b6d5132c /settings/routes.php
parentce0604bd0627c62671d46d443639815ade4d4852 (diff)
parent789082e014bc7b4ecea53be088521d41407fed7b (diff)
downloadnextcloud-server-c5d0a056de10622b4d5f94deef8a25e95dfb8371.tar.gz
nextcloud-server-c5d0a056de10622b4d5f94deef8a25e95dfb8371.zip
Merge pull request #868 from nextcloud/changepasswordcontroller
Make ChangePassword a real Controller
Diffstat (limited to 'settings/routes.php')
-rw-r--r--settings/routes.php8
1 files changed, 2 insertions, 6 deletions
diff --git a/settings/routes.php b/settings/routes.php
index f77da543e10..64c4e549681 100644
--- a/settings/routes.php
+++ b/settings/routes.php
@@ -66,6 +66,8 @@ $application->registerRoutes($this, [
['name' => 'Certificate#removeSystemRootCertificate', 'url' => '/settings/admin/certificate/{certificateIdentifier}', 'verb' => 'DELETE'],
['name' => 'AdminSettings#index', 'url' => '/settings/admin/{section}', 'verb' => 'GET', 'defaults' => ['section' => 'server']],
['name' => 'AdminSettings#form', 'url' => '/settings/admin/{section}', 'verb' => 'GET'],
+ ['name' => 'ChangePassword#changePersonalPassword', 'url' => '/settings/personal/changepassword', 'verb' => 'POST'],
+ ['name' => 'ChangePassword#changeUserPassword', 'url' => '/settings/users/changepassword', 'verb' => 'POST'],
]
]);
@@ -86,15 +88,9 @@ $this->create('settings_ajax_togglegroups', '/settings/ajax/togglegroups.php')
->actionInclude('settings/ajax/togglegroups.php');
$this->create('settings_ajax_togglesubadmins', '/settings/ajax/togglesubadmins.php')
->actionInclude('settings/ajax/togglesubadmins.php');
-$this->create('settings_users_changepassword', '/settings/users/changepassword')
- ->post()
- ->action('OC\Settings\ChangePassword\Controller', 'changeUserPassword');
$this->create('settings_ajax_changegorupname', '/settings/ajax/changegroupname.php')
->actionInclude('settings/ajax/changegroupname.php');
// personal
-$this->create('settings_personal_changepassword', '/settings/personal/changepassword')
- ->post()
- ->action('OC\Settings\ChangePassword\Controller', 'changePersonalPassword');
$this->create('settings_ajax_setlanguage', '/settings/ajax/setlanguage.php')
->actionInclude('settings/ajax/setlanguage.php');
// apps