flexi auth - A user authentication library for CodeIgniter - 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: flexi auth - A user authentication library for CodeIgniter (/showthread.php?tid=54581) |
flexi auth - A user authentication library for CodeIgniter - El Forum - 08-08-2013 [eluser]bunoire14[/eluser] Hey, Can anyone help me please! im tearing my hair out! :-D I am working on a subscription website and have dropped in the Flexi Auth library to handle all my user management needs. I have created a relatively simple registration form and want to implement the reCaptcha library on it. I have managed to get the captcha box to show up on the form, no problems there, and it all seems to submit fine, but every time it submits It fails the captcha required validation. I have checked the post data and it seems the captcha_response_field isn't being passed as part of the post data so Im wondering what im doing wrong? I think its got to be something to do with the view... but ill post up my code anyway: Model: auth/auth_model.php Code: $validation_rules = array( Controller: register/register.php Code: // Redirect user away from registration page if already logged in. View: registration/registration_form Code: <?php echo $this->load->view('global/html_head'); ?> Any pointers on this would be great, I'm sure I'm missing something simple... but you know how it is sometimes you just cant see it for looking! Thanks in advance! flexi auth - A user authentication library for CodeIgniter - El Forum - 08-08-2013 [eluser]bunoire14[/eluser] OK Figured it out.... funny old thing id didn't like me splitting the form into separate <div>'s..... school boy error! All working now flexi auth - A user authentication library for CodeIgniter - El Forum - 08-25-2013 [eluser]devha[/eluser] With default configuration, flexi auth allows only limited set of characters for password ( regex '\.\,\-_ a-z0-9' ). Is there any reason why I should limit valid characters to this so small set? As password is not stored to database as such, there is no risk of sql injection etc? Any example how to allow more wider set of characters for password, like !, @, % etc... Can i just set: $config['security']['valid_password_chars'] = '.'; flexi auth - A user authentication library for CodeIgniter - El Forum - 09-06-2013 [eluser]Unknown[/eluser] Hi, I'm using the library flexi_auth with another call HMVC and I have the following problem. I made a module called Auth, and the folder structure is as follows. - application + controlllers + models - modules - Auth - controllers - auth.php - libraries - Flexi_auth.php - Flexi_auth_lite.php + models + views + views when I load the library in auth.php controller $this->load->library('auth/flexi_auth') the browser shows me this error "Unable to locate the specified class: Flexi_auth_lite.php". I tried to locate the library in application/libraries and works well, but I need to working within the modules folder. Any idea why this error.? Also tried other libraries within modules and work well. flexi auth - A user authentication library for CodeIgniter - El Forum - 09-12-2013 [eluser]hyperfire[/eluser] I'm having some trouble logging in with flexiauth installed on subdomains. While on localhost or main domain, flexiauth works fine, but for some reason, whenever I login on a subdomain, I get the login true on the login page if I debug, but as soon as I redirect user after login to another controller, this child controller don't find the login info and kicks the user back to login page. Let me be clear: my.domain.com/login $this->flexi_auth->is_logged_in() // returns true after login on login page (debugging) my.domain.com/dashboard $this->flexi_auth->is_logged_in() // returns false after login Am I doing anything wrong? I'm trying to debug it right now, as I believe it to be a issue with cookies & subdomains, but I donno yet! thanks!! EDIT: Ok, got it working in 3 steps: 1) edit config.php > $config['cookie_domain'] = '.domain.com'; // have to set .domain for sitewide cookies 2) clear browser cookies 3) login Cheers!! flexi auth - A user authentication library for CodeIgniter - El Forum - 09-23-2013 [eluser]Unknown[/eluser] Hello guys I just started using Flexi Auth as my main user management library. It is great! So thank you very much haseydesign. I found an error that I managed to fix and wanted to share with you guys. When loading the flexi_auth_model I got a 500 server error! I looked into the code and noticed that the class extends flexi_auth_lite_model which was not loaded. I managed to fix that by adding the following code to the top of the flexi_auth_model file. right before: class Flexi_auth_model extends Flexi_auth_lite_model { Add: load_class('Flexi_auth_lite_model', 'models', FALSE); That's it. Have fun! flexi auth - A user authentication library for CodeIgniter - El Forum - 10-09-2013 [eluser]Unknown[/eluser] Hello! Is it possible to change the user's group? I've tried this without success: Code: public function set_user_group($groupID){ flexi auth - A user authentication library for CodeIgniter - El Forum - 10-11-2013 [eluser]mautone[/eluser] Hi there. I've just started using Flexi auth. I like the features very much and, decided to use it for my next big project. An ERP system for my self. I have a big problem with the login part. I get these warnings everytime i try to login: Quote:A PHP Error was encounteredMy controller: Code: class Auth extends CI_Controller{ My view: Code: <h1>Login</h1> I just want to get to familiar with it before I implementing in the design. Can anyone help me? SOLVED. It needs some data in certen tables. flexi auth - A user authentication library for CodeIgniter - El Forum - 10-15-2013 [eluser]Unknown[/eluser] I am rebuilding a site using CI and the flexi auth library. I moved all the user information into the appropriate tables but my issue is that all my user's passwords are already hashed using md5. So when I try to login, I am getting incorrect credentials error. Anyway to make the system check against md5 only? flexi auth - A user authentication library for CodeIgniter - El Forum - 10-19-2013 [eluser]Unknown[/eluser] Hi.. I’d started to know with your library and i like it a lot . but i have a problem , i designed my user table schema before know about your library , so now how can i merge these 2 database and change all columns name in library ?! is that possible ?! |