MeNeedz Auth - 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: MeNeedz Auth (/showthread.php?tid=13058) |
MeNeedz Auth - El Forum - 11-21-2008 [eluser]davidbehler[/eluser] But you can see the form to login? MeNeedz Auth - El Forum - 11-21-2008 [eluser]SaSHka[/eluser] [quote author="waldmeister" date="1227337181"]But you can see the form to login?[/quote] Yes! MeNeedz Auth - El Forum - 11-21-2008 [eluser]davidbehler[/eluser] What happens when you click the submit button? Do you see the form again or just a white page? MeNeedz Auth - El Forum - 11-21-2008 [eluser]SaSHka[/eluser] I see the form again Also I see the debugger information Code: URI STRING MeNeedz Auth - El Forum - 11-21-2008 [eluser]davidbehler[/eluser] Have you checked your config? Whats the value for the password in the database? Have you created the user by hand or used the registration function? MeNeedz Auth - El Forum - 11-21-2008 [eluser]SaSHka[/eluser] For registration I use the controller Code: function register() View Code: <html> User table user_id user_name user_password user_salt user_group user_email 1 sashka a1e55335d2c4014f4467d9eef8d6a1bc 8634679e0cdba42fd6971091b41afd13 [email protected] 3 nosize 7c16d0582f688a785a1f878964a2c3da 0fb09f0dbfe4dc61cbf58f1c6a8077d5 [email protected] 4 gfhfgh 7d1b267c66f8fbf77bd91c3d4b6c51d9 0db38019664205938378b9fb7222065e 54@dfg,com MeNeedz Auth - El Forum - 11-21-2008 [eluser]SaSHka[/eluser] At switching-off use_encryption preference all has earned! MeNeedz Auth - El Forum - 11-21-2008 [eluser]davidbehler[/eluser] Congratulations, you have just found a bug in my library I have fixed it and uploaded the new version. If you don't want to download the new version you can just replace line 238: Code: $password_hash = $encryption_method(str_replace("%password%", $this->CI->db->escape($user_password), str_replace("%salt%", $this->CI->db->escape($salt), str_replace(".", "", $this->encryption_order)))); Code: $password_hash = $encryption_method(str_replace("%password%", $user_password, str_replace("%salt%", $salt, str_replace(".", "", $this->encryption_order)))); You have to delete all existing users and register them again. After that it should work just fine with and without encryption. MeNeedz Auth - El Forum - 11-21-2008 [eluser]SaSHka[/eluser] Thanks! And in User guide in a database in the table member the column group_id has corrected? MeNeedz Auth - El Forum - 11-22-2008 [eluser]davidbehler[/eluser] Yeah, I have updated the user guide and the library and change the default group foreign key column consistently to group_id. |