Community auth: problem with login |
07-29-2017, 10:10 PM
(This post was last modified: 07-30-2017, 02:14 AM by Sten. Edit Reason: adding more information ) (07-29-2017, 09:19 PM)skunkbad Wrote: There is no magic. If it worked and now it doesn't, I can tell you why. Zip up your files, and include a database dump in /sql. Put it only somewhere where I can download it. Here is the link to my dummy project: http://www.mediafire.com/file/q0ms5yd6fx...y_test.rar You can access to the login page via http://localhost/rakuyomi/login I put the sql file in application\third_party\community_auth\sql I have made some name changes to the Examples folder (Examples -> Auth), but no logic changes at all. Please have a look. Thanks and regards. --------------------------------------- UPDATE: Okay, so after I add the hidden input "login_token" to the "login_form.php", it worked now. But I still don't understand why it used to work before when I first installed Community-Auth (at that time I remember I didn't add any input to the example login_form.php), and the default login_form.php file does not come with login_token out-of-the-box. That's the first thing. The second thing is, I'm now encounting another the issue, that is when I set $autoload['libraries'] = array('session') in autoload.php, I keep getting this error message when trying to login: Code: A Database Error Occurred And if I stick the "Remember Me" checkbox, I get the above error plus a new one: Code: A PHP Error was encountered Not sure if any other configurations affected, but you can reproduce with my dummy project above. Is there a conflict of session library from the CI and the Community-Auth ? |
Messages In This Thread |
Community auth: problem with login - by Giba - 07-04-2017, 04:28 PM
RE: Community auth: problem with login - by skunkbad - 07-05-2017, 08:03 AM
RE: Community auth: problem with login - by Sten - 07-29-2017, 08:50 PM
RE: Community auth: problem with login - by skunkbad - 07-29-2017, 09:19 PM
RE: Community auth: problem with login - by Sten - 07-29-2017, 10:10 PM
RE: Community auth: problem with login - by Sten - 07-29-2017, 09:55 PM
RE: Community auth: problem with login - by skunkbad - 07-30-2017, 08:51 AM
RE: Community auth: problem with login - by Sten - 07-30-2017, 07:40 PM
|