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

Im currently running into some problems setting Community Auth up in CodeIgniter i have managed to set it up and cant seem to understand what is causing the problem of me not being able to be logged in all the time.

According to the AJAX login form im getting the right tokens from the form, they are submitted and it gives me a correct callbac. But it cant seem to keep me logged in.

Code:
DEBUG - 2016-10-26 20:35:40 --> UTF-8 Support Enabled
DEBUG - 2016-10-26 20:35:40 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2016-10-26 20:35:40 --> Config file loaded: C:\Users\Staffan\Dropbox\xampp\htdocs\tinderbox\application\third_party/community_auth/config/db_tables.php
DEBUG - 2016-10-26 20:35:40 --> Config file loaded: C:\Users\Staffan\Dropbox\xampp\htdocs\tinderbox\application\third_party/community_auth/config/authentication.php
DEBUG - 2016-10-26 20:35:40 --> Session: "sess_save_path" is empty; using "session.save_path" value from php.ini.
DEBUG - 2016-10-26 20:35:40 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2016-10-26 20:35:40 -->
string     = user
password   = USer1234
form_token = 6beaa401
token_jar  = ["5d6bde62","6beaa401"]
DEBUG - 2016-10-26 20:35:40 --> Config file loaded: C:\Users\Staffan\Dropbox\xampp\htdocs\tinderbox\application\third_party/community_auth/config/examples/password_strength.php
DEBUG - 2016-10-26 20:35:40 --> Config file loaded: C:\Users\Staffan\Dropbox\xampp\htdocs\tinderbox\application\third_party/community_auth/config/form_validation/examples/login.php
DEBUG - 2016-10-26 20:35:41 -->
user is banned             = no
password in database       = $2y$11$MwtJlO8o2Ho1vWFxax62OuJngskSjSfGx./v2fuL1hjbmGDypnF2a
supplied password match    =
required level or role     = 1
auth level in database     = 9
auth level equivalant role = admin
DEBUG - 2016-10-26 20:35:41 --> Total execution time: 0.6556
DEBUG - 2016-10-26 20:35:46 --> UTF-8 Support Enabled
DEBUG - 2016-10-26 20:35:47 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2016-10-26 20:35:47 --> Config file loaded: C:\Users\Staffan\Dropbox\xampp\htdocs\tinderbox\application\third_party/community_auth/config/db_tables.php
DEBUG - 2016-10-26 20:35:47 --> Config file loaded: C:\Users\Staffan\Dropbox\xampp\htdocs\tinderbox\application\third_party/community_auth/config/authentication.php
DEBUG - 2016-10-26 20:35:47 --> Session: "sess_save_path" is empty; using "session.save_path" value from php.ini.
DEBUG - 2016-10-26 20:35:47 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2016-10-26 20:35:47 -->
string     = user
password   = User1234
form_token = b26f70f9
token_jar  = ["b26f70f9"]
DEBUG - 2016-10-26 20:35:47 --> Config file loaded: C:\Users\Staffan\Dropbox\xampp\htdocs\tinderbox\application\third_party/community_auth/config/examples/password_strength.php
DEBUG - 2016-10-26 20:35:47 --> Config file loaded: C:\Users\Staffan\Dropbox\xampp\htdocs\tinderbox\application\third_party/community_auth/config/form_validation/examples/login.php
DEBUG - 2016-10-26 20:35:47 --> Total execution time: 0.2476
DEBUG - 2016-10-26 20:35:47 --> UTF-8 Support Enabled
DEBUG - 2016-10-26 20:35:47 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2016-10-26 20:35:47 --> Config file loaded: C:\Users\Staffan\Dropbox\xampp\htdocs\tinderbox\application\third_party/community_auth/config/db_tables.php
DEBUG - 2016-10-26 20:35:47 --> Config file loaded: C:\Users\Staffan\Dropbox\xampp\htdocs\tinderbox\application\third_party/community_auth/config/authentication.php
DEBUG - 2016-10-26 20:35:47 --> Session: "sess_save_path" is empty; using "session.save_path" value from php.ini.
DEBUG - 2016-10-26 20:35:47 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2016-10-26 20:35:47 --> Total execution time: 0.0758
DEBUG - 2016-10-26 20:35:47 --> UTF-8 Support Enabled
DEBUG - 2016-10-26 20:35:47 --> Global POST, GET and COOKIE data sanitized
DEBUG - 2016-10-26 20:35:47 --> Config file loaded: C:\Users\Staffan\Dropbox\xampp\htdocs\tinderbox\application\third_party/community_auth/config/db_tables.php
DEBUG - 2016-10-26 20:35:47 --> Config file loaded: C:\Users\Staffan\Dropbox\xampp\htdocs\tinderbox\application\third_party/community_auth/config/authentication.php
DEBUG - 2016-10-26 20:35:47 --> Session: "sess_save_path" is empty; using "session.save_path" value from php.ini.
DEBUG - 2016-10-26 20:35:47 --> Encryption: Auto-configured driver 'openssl'.
DEBUG - 2016-10-26 20:35:47 --> Total execution time: 0.0760

This is my log file and according to that everything seems fine :/

Im using Xampp on a localhost
Reply
#2

What session driver are you using? If you are using database, did you set it up correctly? "Session: "sess_save_path" is empty"... look at the manual on how to configure sessions in CI
Reply
#3

What happens when you try to work with the Examples controller that is provided with Community Auth? If that doesn't work then you most likely didn't follow every step to install Community Auth correctly. If it does work then you've got problems with your own custom code, and we'd need to see some code to be able to help you.
Reply
#4

Turned out i didnt have session enabled in my apache, thanks for trying to help me Big Grin
Reply
#5

how code string password comunity auth?
Reply
#6

(02-20-2017, 06:59 PM)jopan Wrote: how code string password comunity auth?


I don't understand what you are asking for.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB