How to redirect my settings page after a successful connection in the tank authentication


How to redirect my setting page after sucessfull login in tank auth

if ($this->form_validation->run()) {
    // validation ok
    if ($this->tank_auth->login(
        $data['login_by_email'])) {

    // success

But its not redirecting shows 404 error

Can you please check your log files and post here. It may help us find the issue. Set log threshold to 4 in 'config/config.php' and check 'application/logs'. Also, make sure you are getting inside the second if condition. ie.

 if ($this->tank_auth->login() {

If it is getting inside it, check if there is any extra unwanted space (whitespace) or something in the related files.