route with (:any) not working on Ion Auth - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: route with (:any) not working on Ion Auth (/showthread.php?tid=68767) |
route with (:any) not working on Ion Auth - JanFromHamburg - 08-23-2017 I've got a problem to reset the password with Ion Auth. Everything else in Ion Auth works fine. The first lines of my config/routes.php are PHP Code: <?php The first one (for testing) is working, but the second one with (:any) does not work. It redirects me always to auth/login Do you know whats could be wrong? PHP Code: public function reset_password($code = NULL) RE: route with (:any) not working on Ion Auth - JediMind - 08-29-2017 Remove the '/$1'. auth/reset_password will automatically receive what is in (:any) as first param. PHP Code: $route['auth/reset_password/(:any)'] = 'auth/reset_password'; RE: route with (:any) not working on Ion Auth - Wouter60 - 08-30-2017 Remove the other 3 routes. They are useless. RE: route with (:any) not working on Ion Auth - InsiteFX - 08-30-2017 If that won't work try this one: PHP Code: $route['auth/reset_password/(.+)'] = 'auth/reset_password/$1'; |