diff options
author | Victor Dubiniuk <victor.dubiniuk@gmail.com> | 2014-03-25 01:38:11 +0300 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2014-06-13 15:34:51 +0200 |
commit | 23ed038a27901b947b75413b966d4beab21cd2bc (patch) | |
tree | 03d7522cc0f943160a35f07dc860de741dcd5d0b /core/routes.php | |
parent | c09f5680c98d66d6e5a0fe793561194ecafed3ea (diff) | |
download | nextcloud-server-23ed038a27901b947b75413b966d4beab21cd2bc.tar.gz nextcloud-server-23ed038a27901b947b75413b966d4beab21cd2bc.zip |
Basics
Diffstat (limited to 'core/routes.php')
-rw-r--r-- | core/routes.php | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/core/routes.php b/core/routes.php index 5368fd45645..fbbbdee81f0 100644 --- a/core/routes.php +++ b/core/routes.php @@ -70,18 +70,15 @@ $this->create('core_ajax_preview', '/core/preview') ->actionInclude('core/ajax/preview.php'); $this->create('core_ajax_preview', '/core/preview.png') ->actionInclude('core/ajax/preview.php'); -$this->create('core_lostpassword_index', '/lostpassword/') - ->get() - ->action('OC\Core\LostPassword\Controller', 'index'); -$this->create('core_lostpassword_send_email', '/lostpassword/') +$this->create('core_ajax_password_lost', '/core/ajax/password/lost') + ->post() + ->action('OC\Core\Lostpassword\AjaxController', 'lost'); +$this->create('core_ajax_password_reset', '/core/ajax/password/reset/{token}/{user}') ->post() - ->action('OC\Core\LostPassword\Controller', 'sendEmail'); + ->action('OC\Core\LostPassword\AjaxController', 'resetPassword'); $this->create('core_lostpassword_reset', '/lostpassword/reset/{token}/{user}') ->get() ->action('OC\Core\LostPassword\Controller', 'reset'); -$this->create('core_lostpassword_reset_password', '/lostpassword/reset/{token}/{user}') - ->post() - ->action('OC\Core\LostPassword\Controller', 'resetPassword'); // Avatar routes $this->create('core_avatar_get_tmp', '/avatar/tmp') |