I'm trying to figure out Community Auth. The example controller is working fine. I've created a new controller (named Auth), which extends MY_Controller. It has a login function, that's basically a clone of the one in the examples controller. It has it's own views, which are similair to the example views (especially the actual log in view). I changed routes.php so that 'LOGIN_PAGE' points at 'auth/login'.
But I get no results. It doesn't authenticate, it doesn't reject. Whether I put in valid credentials or not, it just takes me back to the login view. The log doesn't seem to have anything useful. Here's what it looks like:
Code:
DEBUG - 2017-11-12 01:23:57 --> UTF-8 Support Enabled
DEBUG - 2017-11-12 01:23:57 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2017-11-12 01:23:57 --> Config file loaded: /home/jgalak/html/oscar2/application/third_party/community_auth/config/db_tables.php
DEBUG - 2017-11-12 01:23:57 --> Config file loaded: /home/jgalak/html/oscar2/application/third_party/community_auth/config/authentication.php
DEBUG - 2017-11-12 01:23:57 --> Session: "sess_save_path" is empty; using "session.save_path" value from php.ini.
DEBUG - 2017-11-12 01:23:57 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2017-11-12 01:23:57 -->
string = bad
password = password
form_token = 79d6da2b
token_jar = ["5462e405","ce843e45","6ef58368","79d6da2b"]
DEBUG - 2017-11-12 01:23:57 -->
URI STRING FROM LOGIN = auth/login
DEBUG - 2017-11-12 01:23:57 --> Total execution time: 0.0045
DEBUG - 2017-11-12 01:23:58 --> UTF-8 Support Enabled
DEBUG - 2017-11-12 01:23:58 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2017-11-12 01:23:58 --> Config file loaded: /home/jgalak/html/oscar2/application/third_party/community_auth/config/db_tables.php
DEBUG - 2017-11-12 01:23:58 --> Config file loaded: /home/jgalak/html/oscar2/application/third_party/community_auth/config/authentication.php
DEBUG - 2017-11-12 01:23:58 --> Session: "sess_save_path" is empty; using "session.save_path" value from php.ini.
DEBUG - 2017-11-12 01:23:58 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2017-11-12 01:23:58 --> Total execution time: 0.0017
This is with deliberately bad credentials. It looks like the data from the form is being picked up, but nothing is being done with it - it's neither rejected nor accepted.
When I use the example controller, everything works fine.
On a related note, I cannot, for the life of me, figure out where the log in page goes. What code actually processes the login request? It looks like a hook somewhere takes over execution, since when I look at the html generated by the example controller, it looks like it just goes back to the examples/login function, but that function clearly doesn't do the processing....
Help appreciated.