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

advertisements

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

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

    // success
    redirect('/auth/user_profile');

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.