summaryrefslogtreecommitdiffstats
path: root/settings/routes.php
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2014-12-15 12:43:42 +0100
committerMorris Jobke <hey@morrisjobke.de>2014-12-18 22:43:09 +0100
commit5913af8a72e384f8fee89501b3a297b70460c1e0 (patch)
tree7f329b47b84bc312952d66f8f86f3f7e66ae9476 /settings/routes.php
parent5327b8043019ec8f0cfe19d70794978570bba4bc (diff)
downloadnextcloud-server-5913af8a72e384f8fee89501b3a297b70460c1e0.tar.gz
nextcloud-server-5913af8a72e384f8fee89501b3a297b70460c1e0.zip
Mail address of users is now changable in the user management
* introduced new route settings/users/{id}/mailAddress * kept old responses * better error messages * dropped lostpassword.php from settings/ajax * cleaned up the UserList.add() and hand in user object instead of each attribute as another parameter * check for change permission of mail address * proper response messages
Diffstat (limited to 'settings/routes.php')
-rw-r--r--settings/routes.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/settings/routes.php b/settings/routes.php
index 1b7a918fa79..4be7785670b 100644
--- a/settings/routes.php
+++ b/settings/routes.php
@@ -23,6 +23,7 @@ $application->registerRoutes($this, array(
array('name' => 'SecuritySettings#enforceSSL', 'url' => '/settings/admin/security/ssl', 'verb' => 'POST'),
array('name' => 'SecuritySettings#enforceSSLForSubdomains', 'url' => '/settings/admin/security/ssl/subdomains', 'verb' => 'POST'),
array('name' => 'SecuritySettings#trustedDomains', 'url' => '/settings/admin/security/trustedDomains', 'verb' => 'POST'),
+ array('name' => 'Users#setMailAddress', 'url' => '/settings/users/{id}/mailAddress', 'verb' => 'PUT'),
)
));
@@ -62,8 +63,6 @@ $this->create('settings_ajax_changegorupname', '/settings/ajax/changegroupname.p
$this->create('settings_personal_changepassword', '/settings/personal/changepassword')
->post()
->action('OC\Settings\ChangePassword\Controller', 'changePersonalPassword');
-$this->create('settings_ajax_lostpassword', '/settings/ajax/lostpassword.php')
- ->actionInclude('settings/ajax/lostpassword.php');
$this->create('settings_ajax_setlanguage', '/settings/ajax/setlanguage.php')
->actionInclude('settings/ajax/setlanguage.php');
$this->create('settings_ajax_decryptall', '/settings/ajax/decryptall.php')