Codeigniter Routing Settings for Tank Auth Codeigniter Routing Settings for Tank Auth codeigniter codeigniter

Codeigniter Routing Settings for Tank Auth


The solution is changing url segments in the (auth) controller from this:

    $user_id        = $this->uri->segment(3);    $new_pass_key    = $this->uri->segment(4);

to this:

    $user_id        = $this->uri->segment(2);    $new_pass_key    = $this->uri->segment(3);

After this change, the routing for activate&reset_password is working with those rules

$route['activate/:num/:any'] = "/auth/activate/$1/$2";$route['reset_password/:num/:any'] = "/auth/reset_password/$1/$2";