![]() |
Tank Auth v1.0 (CI authentication library) - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22) +--- Thread: Tank Auth v1.0 (CI authentication library) (/showthread.php?tid=17515) |
Tank Auth v1.0 (CI authentication library) - El Forum - 05-05-2010 [eluser]theshiftexchange[/eluser] [quote author="gh0st" date="1273102267"]Hello I have got a bug report. I have got a local version of Tank Auth working fine, however when I uploaded my stuff to my live server it kept saying my password was wrong. I made sure the database's were the same, and they were! My password is right, I know because I've tested it lots of different times. I believe it has something to do with the way it hashes the passwords. Can someone confirm whether or not moving their site from local to live has caused problems with TankAuth in the past, and what is the best way to resolve this? The only thing I can do right now is to strip out the hashing and see if that works?[/quote] I'm using TankAuth without problem on a live site. The fact it ONLY happens on your live site indicates something else is wrong - not TankAuth... Tank Auth v1.0 (CI authentication library) - El Forum - 05-07-2010 [eluser]gh0st[/eluser] It was the Hash that was the problem. Not TankAuth. I stripped it out for the moment and got it working again. I will review Guardian's post to see if this can resolve the issue. Tank Auth v1.0 (CI authentication library) - El Forum - 05-07-2010 [eluser]gh0st[/eluser] I have tracked it down to the crypt() function, on my local machine it gives a different result to my live site. How do I force crypt() to use the same encryption method? Thanks. Tank Auth v1.0 (CI authentication library) - El Forum - 05-07-2010 [eluser]Guardian[/eluser] Quote:To ensure that the fallbacks will never occur, PHP 5.3.0+ or the Suhosin patch may be used. PHP 5.3.0+ and Suhosin integrate crypt_blowfish into the PHP interpreter such that bcrypt is available for use by PHP scripts even if the host system lacks support for it. I am using Suhosin on my dev and live platforms and the problem is gone ![]() Tank Auth v1.0 (CI authentication library) - El Forum - 05-24-2010 [eluser]jatap[/eluser] [quote author="theshiftexchange" date="1269361809"]How to easily add basic role management to Tank Auth - Part 1/3 Code: function check_roles($role) At first sight it looks good although I don't understand why use reset function here, it has no effect. Thanks for your work. Tank Auth v1.0 (CI authentication library) - El Forum - 05-25-2010 [eluser]theshiftexchange[/eluser] [quote author="jatap" date="1274781565"][quote author="theshiftexchange" date="1269361809"]How to easily add basic role management to Tank Auth - Part 1/3 Code: function check_roles($role) At first sight it looks good although I don't understand why use reset function here, it has no effect. Thanks for your work.[/quote] The reset() function was just a 'safety' measure to ensure the array was at position 0 before starting the check. At closer inspection your right, it might not be needed, but PHP Arrays were not my strength so I just left it... ![]() Tank Auth v1.0 (CI authentication library) - El Forum - 06-11-2010 [eluser]Unknown[/eluser] How do you take advantage of the user_profiles table? Is there some function to write/read this additional info about a user? Tank Auth v1.0 (CI authentication library) - El Forum - 06-30-2010 [eluser]Unknown[/eluser] Silly question regarding the 'is_logged_in' function. Will it return FALSE if the user's session expires? By that I mean is when a user authenticates, goes off to the bathroom and comes back after the session expiration time has expired, can I use that function to force him to re-authenticate again? Thanks and this looks like a really good tool. Tank Auth v1.0 (CI authentication library) - El Forum - 07-12-2010 [eluser]billyjeans[/eluser] [quote author="dotmundo" date="1277950699"]Silly question regarding the 'is_logged_in' function. Will it return FALSE if the user's session expires? By that I mean is when a user authenticates, goes off to the bathroom and comes back after the session expiration time has expired, can I use that function to force him to re-authenticate again?[/quote] Yes. You can also change the $config['login_attempt_expire'] as you wish. Tank Auth v1.0 (CI authentication library) - El Forum - 07-12-2010 [eluser]billyjeans[/eluser] [quote author="theshiftexchange" date="1269361809"]How to easily add basic role management to Tank Auth - Part 1/3 [/quote] It seems that you should set userdata for roles not only in login, but also in autologin. Otherwise the role userdata will be NULL after autologin is performed. |