diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2016-08-15 11:11:41 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2016-08-17 10:21:14 +0200 |
commit | 32a6f5f1829ec9d1037fc7a0144631702ce598c2 (patch) | |
tree | 0102f57c63db6a13ed6f0bdded60f843e6d98e7d /settings/routes.php | |
parent | c1632c3abd0f136b4ecb8d7a5bef5c3c72f9cb95 (diff) | |
download | nextcloud-server-32a6f5f1829ec9d1037fc7a0144631702ce598c2.tar.gz nextcloud-server-32a6f5f1829ec9d1037fc7a0144631702ce598c2.zip |
Moved ChangePassword to an actual Controller
* Still no full DI because of encryption fu
* Remove old "Controller"
Diffstat (limited to 'settings/routes.php')
-rw-r--r-- | settings/routes.php | 8 |
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 |