Welcome Guest, Not a member yet? Register   Sign In
Community Auth Learning...
#31

Now my admin/login method works fine now.
I can now login through it.

But the new problem is when I login using an invalid password it redirect me to the front/login method which is the public login page of the website.
How do I make it show the error on the same admin/login page?

By the way here is the codes in my admin/login method.
Code:
public function login()
    {
        if( $this->verify_min_level(9) )
        {
            $this->cpanel();
        }
        else if( $this->tokens->match && $this->optional_login() )
        {
            // Let Community Auth handle the login attempt ...
        }
        else
        {
            // Show your form here ...
            //echo '<p>You are not logged in, Show your form here</p>';

            // Notice the parameter is set to TRUE, which designates this as an optional login
            $this->setup_login_form(TRUE);
            
            $this->dryview($header='admin/header', $msg='', $menu='admin/menu', $content='admin/login',  $footer='admin/footer', $master='admin/admin_login_page');
        }  
    }

thanks in advance.
Reply


Messages In This Thread
Community Auth Learning... - by solidcodes - 08-18-2015, 10:30 PM
RE: Community Auth Learning... - by solidcodes - 08-19-2015, 02:04 AM
RE: Community Auth Learning... - by solidcodes - 08-20-2015, 06:24 PM
RE: Community Auth Learning... - by solidcodes - 08-20-2015, 06:32 PM
RE: Community Auth Learning... - by skunkbad - 08-20-2015, 07:41 PM
RE: Community Auth Learning... - by solidcodes - 08-20-2015, 09:10 PM
RE: Community Auth Learning... - by zenepay - 06-11-2016, 03:01 AM
RE: Community Auth Learning... - by bpuig - 05-17-2017, 08:33 AM
RE: Community Auth Learning... - by solidcodes - 08-21-2015, 02:53 AM
RE: Community Auth Learning... - by solidcodes - 08-21-2015, 02:56 AM
RE: Community Auth Learning... - by solidcodes - 08-21-2015, 04:07 AM
RE: Community Auth Learning... - by solidcodes - 08-21-2015, 04:38 AM
RE: Community Auth Learning... - by skunkbad - 08-21-2015, 02:05 PM
RE: Community Auth Learning... - by Narf - 08-21-2015, 02:11 PM
RE: Community Auth Learning... - by solidcodes - 08-21-2015, 04:50 AM
RE: Community Auth Learning... - by solidcodes - 08-21-2015, 05:04 AM
RE: Community Auth Learning... - by skunkbad - 08-21-2015, 02:07 PM
RE: Community Auth Learning... - by Narf - 08-21-2015, 02:13 PM
RE: Community Auth Learning... - by solidcodes - 08-21-2015, 04:38 PM
RE: Community Auth Learning... - by solidcodes - 08-21-2015, 07:08 PM
RE: Community Auth Learning... - by skunkbad - 08-21-2015, 09:23 PM
RE: Community Auth Learning... - by solidcodes - 08-21-2015, 10:04 PM
RE: Community Auth Learning... - by solidcodes - 11-14-2015, 07:34 PM
RE: Community Auth Learning... - by skunkbad - 11-15-2015, 12:05 AM
RE: Community Auth Learning... - by solidcodes - 11-15-2015, 03:43 AM
RE: Community Auth Learning... - by solidcodes - 11-15-2015, 08:15 PM
RE: Community Auth Learning... - by skunkbad - 11-16-2015, 01:04 PM
RE: Community Auth Learning... - by solidcodes - 11-17-2015, 07:57 PM
RE: Community Auth Learning... - by skunkbad - 11-18-2015, 10:42 AM
RE: Community Auth Learning... - by solidcodes - 11-18-2015, 06:46 PM
RE: Community Auth Learning... - by skunkbad - 11-18-2015, 07:25 PM
RE: Community Auth Learning... - by solidcodes - 11-18-2015, 07:38 PM
RE: Community Auth Learning... - by solidcodes - 11-23-2015, 03:55 PM
RE: Community Auth Learning... - by solidcodes - 11-23-2015, 11:25 PM
RE: Community Auth Learning... - by solidcodes - 11-24-2015, 12:29 AM
RE: Community Auth Learning... - by skunkbad - 11-24-2015, 01:01 PM
RE: Community Auth Learning... - by solidcodes - 11-24-2015, 06:15 PM
RE: Community Auth Learning... - by solidcodes - 11-28-2015, 04:45 PM
RE: Community Auth Learning... - by skunkbad - 11-29-2015, 02:31 AM
RE: Community Auth Learning... - by solidcodes - 11-29-2015, 02:43 AM
RE: Community Auth Learning... - by skunkbad - 11-29-2015, 09:52 AM
RE: Community Auth Learning... - by solidcodes - 11-30-2015, 05:24 PM
RE: Community Auth Learning... - by solidcodes - 11-30-2015, 05:28 PM
RE: Community Auth Learning... - by skunkbad - 11-30-2015, 06:32 PM
RE: Community Auth Learning... - by solidcodes - 11-30-2015, 07:33 PM
RE: Community Auth Learning... - by skunkbad - 12-01-2015, 01:22 AM
RE: Community Auth Learning... - by solidcodes - 11-30-2015, 07:52 PM
RE: Community Auth Learning... - by solidcodes - 12-01-2015, 03:20 PM
RE: Community Auth Learning... - by solidcodes - 12-01-2015, 03:48 PM
RE: Community Auth Learning... - by solidcodes - 12-01-2015, 06:35 PM
RE: Community Auth Learning... - by skunkbad - 12-01-2015, 11:24 PM
RE: Community Auth Learning... - by solidcodes - 12-02-2015, 04:46 PM
RE: Community Auth Learning... - by solidcodes - 12-05-2015, 04:33 PM
RE: Community Auth Learning... - by skunkbad - 12-05-2015, 08:37 PM
RE: Community Auth Learning... - by solidcodes - 12-08-2015, 05:03 PM
RE: Community Auth Learning... - by skunkbad - 12-08-2015, 08:12 PM
RE: Community Auth Learning... - by solidcodes - 12-09-2015, 06:14 PM
RE: Community Auth Learning... - by skunkbad - 12-09-2015, 09:03 PM
RE: Community Auth Learning... - by solidcodes - 12-10-2015, 02:31 PM
RE: Community Auth Learning... - by skunkbad - 12-10-2015, 04:51 PM
RE: Community Auth Learning... - by solidcodes - 12-10-2015, 05:36 PM
RE: Community Auth Learning... - by InsiteFX - 05-17-2017, 10:16 AM



Theme © iAndrew 2016 - Forum software by © MyBB