Welcome Guest, Not a member yet? Register   Sign In
Ajax login not working for community auth
#2

It is possible that your ajax HTTP request is not be detected by CodeIgniter as a legitimate ajax request. If you look at the ajax_attempt_login method in the examples controller, you will see that it is checking for ajax only:


PHP Code:
if( $this->input->is_ajax_request() ) 

Try replacing that with:


PHP Code:
if( == 

If that works, your browser is just not including the header that CI uses to determine if an ajax request is happening. Remember, Community Auth examples are just examples, not code to build your entire app from.
Reply


Messages In This Thread
RE: Ajax login not working for community auth - by skunkbad - 01-10-2017, 01:55 PM



Theme © iAndrew 2016 - Forum software by © MyBB