![]() |
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-2011 [eluser]Ted S[/eluser] Couple questions about extending functionality... 1- Is there a way to automatically log a user in after they register (assuming everything passes and email validation is not required)? 2 - Has anyone modified the library to redirect to the page the user came from rather than back to the homepage after login? Thanks! Tank Auth v1.0 (CI authentication library) - El Forum - 05-05-2011 [eluser]Bangon Kali[/eluser] [quote author="Ted S" date="1304657122"]Couple questions about extending functionality... 1- Is there a way to automatically log a user in after they register (assuming everything passes and email validation is not required)? 2 - Has anyone modified the library to redirect to the page the user came from rather than back to the homepage after login? Thanks![/quote] You'll have to look at: Code: \application\controllers\auth.php Tank Auth v1.0 (CI authentication library) - El Forum - 05-07-2011 [eluser]Unknown[/eluser] I use CodeIgniter + Tank Auth. "/auth/forgot_password" doesn't work. The result always is: "Your activation key is incorrect or expired. Please check your email again and follow the instructions." The registration and activation are all right. Tank Auth v1.0 (CI authentication library) - El Forum - 05-07-2011 [eluser]JonoB[/eluser] [quote author="vili" date="1304781517"]I use CodeIgniter + Tank Auth. "/auth/forgot_password" doesn't work. The result always is: "Your activation key is incorrect or expired. Please check your email again and follow the instructions." The registration and activation are all right.[/quote] Check the auth key that is sent in the email versus what is stored in the database. Where is the code not executing. Use var_dump. i.e. get your hands dirty. Tank Auth v1.0 (CI authentication library) - El Forum - 05-18-2011 [eluser]Unknown[/eluser] Is it possible to use all forms of characters for the password instead of just alpha_dash? We tried removing alpha_dash from the auth controller and it seemed to work, however you can not log into the system. Any pointers on sorting this out? Cheers, Whey Tank Auth v1.0 (CI authentication library) - El Forum - 05-23-2011 [eluser]cyberjunkie[/eluser] Hello all! I edited tankauth so that user profiles are populated without email validation. In the registration form I added and validated two more fields named "first_name" and "last_name" which I want to add to the user_profiles table when the form is submitted. Below is the tankauth function that adds the user id to the user_profiles table if user is activated. I commented out if ($activated). The problem is that I don't know how to insert my new fields first_name and last_name to the db. I tried some variation but I keep getting errors. Code: function create_user($data, $activated = TRUE) the above is connected with Code: private function create_profile($user_id) Can someone please share some guidance? Tank Auth v1.0 (CI authentication library) - El Forum - 05-23-2011 [eluser]Bangon Kali[/eluser] [quote author="cyberjunkie" date="1306220048"]Hello all! I edited tankauth so that user profiles are populated without email validation. In the registration form I added and validated two more fields named "first_name" and "last_name" which I want to add to the user_profiles table when the form is submitted. Below is the tankauth function that adds the user id to the user_profiles table if user is activated. I commented out if ($activated). The problem is that I don't know how to insert my new fields first_name and last_name to the db. I tried some variation but I keep getting errors. Code: function create_user($data, $activated = TRUE) the above is connected with Code: private function create_profile($user_id) Can someone please share some guidance?[/quote] The following I think is wrong: Code: private function create_profile($user_id) Where does $first_name come from? Maybe, you should do this instead: Code: private function create_profile($user_id, $first_name); Tank Auth v1.0 (CI authentication library) - El Forum - 05-24-2011 [eluser]bonjurkes[/eluser] I want to save oauth token and oauth token secret to the database while user has to fill registration form when he/she registers with twitter. So i thought creating a hidden form field at registration page and echo the values of oauth token and secret to the form field. But i don't know how can i echo those oauth values, can anyone share or recommend me a code about how to do it? Tank Auth v1.0 (CI authentication library) - El Forum - 05-24-2011 [eluser]Bangon Kali[/eluser] [quote author="bonjurkes" date="1306277834"]I want to save oauth token and oauth token secret to the database while user has to fill registration form when he/she registers with twitter. So i thought creating a hidden form field at registration page and echo the values of oauth token and secret to the form field. But i don't know how can i echo those oauth values, can anyone share or recommend me a code about how to do it?[/quote] I suggest you use JQuery AJAX to do this. Once you receive the oauth token and oauth token secret you can then make a JQuery AJAX Post/Get request to a controller function which will handle the saving to the database. Tank Auth v1.0 (CI authentication library) - El Forum - 05-24-2011 [eluser]cyberjunkie[/eluser] thx Bangon! Perhaps i can pass an array |