diff options
author | Bart Visscher <bartv@thisnet.nl> | 2012-10-17 17:24:49 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2012-10-17 17:24:49 +0200 |
commit | 0a614429af21193f1da47c94d1382953b8d6ba8c (patch) | |
tree | da51192bde73e83f620fc4259d5580bf27b58a52 /core/routes.php | |
parent | 6081bfa2bcbe121e373486273ecce58a49e6fa97 (diff) | |
download | nextcloud-server-0a614429af21193f1da47c94d1382953b8d6ba8c.tar.gz nextcloud-server-0a614429af21193f1da47c94d1382953b8d6ba8c.zip |
Change the lostpassword flow to a controller
Diffstat (limited to 'core/routes.php')
-rw-r--r-- | core/routes.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/core/routes.php b/core/routes.php index 8d836816265..7cf27498846 100644 --- a/core/routes.php +++ b/core/routes.php @@ -32,6 +32,20 @@ $this->create('core_ajax_vcategories_edit', '/core/ajax/vcategories/edit.php') $this->create('core_ajax_routes', '/core/routes.json') ->action('OC_Router', 'JSRoutes'); +OC::$CLASSPATH['OC_Core_LostPassword_Controller'] = 'core/lostpassword/controller.php'; +$this->create('core_lostpassword_index', '/lostpassword/') + ->get() + ->action('OC_Core_LostPassword_Controller', 'index'); +$this->create('core_lostpassword_send_email', '/lostpassword/') + ->post() + ->action('OC_Core_LostPassword_Controller', 'sendEmail'); +$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'); + // Not specifically routed $this->create('app_css', '/apps/{app}/{file}') ->requirements(array('file' => '.*.css')) |