Welcome Guest, Not a member yet? Register   Sign In
Community Auth Install
#1

(This post was last modified: 10-12-2015, 12:04 PM by jmoore.)

I have installed comminity auth following this http://community-auth.com/documentation/installation

I was able to successfully create a user.  But when I go to the login url, I get the standard ci 404 error.

Where should I look to troubleshoot?

http://nbcis.betaclub.org/v2/examples

Thanks,
Jay

EDIT:

When I visit the url http://nbcis.betaclub.org/v2/examples

it redirects me to http://nbcis.betaclub.org/v2/index.php/l...t=examples

I am wondering if my routes file is not correct.  But it seems pretty straight forward..

PHP Code:
$route['default_controller'] = 'welcome';
$route['404_override'] = '';

$route['LOGIN_PAGE'] = 'examples/login'
Reply
#2

(10-12-2015, 07:15 AM)[email protected] Wrote: I have installed comminity auth following this http://community-auth.com/documentation/installation

I was able to successfully create a user.  But when I go to the login url, I get the standard ci 404 error.

Where should I look to troubleshoot?

http://nbcis.betaclub.org/v2/examples

Thanks,
Jay



I am wondering if I have something wrong in my routes file.  The above URL will redirect to 

http://nbcis.betaclub.org/v2/index.php/l...t=examples

PHP Code:
$route['default_controller'] = 'welcome';
$route['404_override'] = '';

$route['LOGIN_PAGE'] = 'examples/login'
Reply
#3

(10-12-2015, 11:52 AM)[email protected] Wrote:
(10-12-2015, 07:15 AM)[email protected] Wrote: I have installed comminity auth following this http://community-auth.com/documentation/installation

I was able to successfully create a user.  But when I go to the login url, I get the standard ci 404 error.

Where should I look to troubleshoot?

http://nbcis.betaclub.org/v2/examples

Thanks,
Jay



I am wondering if I have something wrong in my routes file.  The above URL will redirect to 

http://nbcis.betaclub.org/v2/index.php/l...t=examples


PHP Code:
$route['default_controller'] = 'welcome';
$route['404_override'] = '';

$route['LOGIN_PAGE'] = 'examples/login'
LOGIN_PAGE should not have quotes around it, because it is a constant. See how it is in the docs.
Reply
#4

Thanks!  I changed it and still get 404 error hitting http://nbcis.betaclub.org/v2/examples which redirects to http://nbcis.betaclub.org/v2/login?redirect=examples

routes.php
PHP Code:
$route[LOGIN_PAGE] = '/v2/examples/login'

Must be something unique to my environment.

In Examples.php controller if I comment out line 219

PHP Code:
 
public function login()
 
   {
 
       // Method should not be directly accessible
 
       if$this->uri->uri_string() == 'examples/login')
 
       {
 
         //  show_404();
 
       

Then I can load directly http://nbcis.betaclub.org/v2/examples/login
Reply
#5

But you really don't want to load examples/login, because the login page is always hidden behind a route. This makes it easy for you to change the route to your login page, which can be beneficial in a number of circumstances.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB