Community auth not working |
i have installed @skunkbad's Community Auth in my CI3 site followed by the instructions.
i was able to create a dummy user by editing the user_data array that is inside the create_user method, and that creates a user in the database as well. now once i try to login, it always shows that username/password doesnt matched! Quote:Login Error: Invalid Username, Email Address, or Password. Any idea
06-26-2015, 07:24 AM
(This post was last modified: 06-26-2015, 07:39 AM by skunkbad. Edit Reason: extra info )
Have you tried to follow the instructions for debugging?
http://community-auth.com/documentation/debugging If you are trying to log into /examples, did you create your user with user_level 9 ? (06-26-2015, 07:24 AM)skunkbad Wrote: Have you tried to follow the instructions for debugging? Many Thanks for your support :=) Here is bottomline of the log: Quote:INFO - 2015-06-26 17:21:20 --> Form Validation Class Initialized what i am doing wrong? (06-26-2015, 08:24 AM)rakibtg Wrote:(06-26-2015, 07:24 AM)skunkbad Wrote: Have you tried to follow the instructions for debugging? Create your user with a stronger password. See the formval_callbacks model to see how a password is checked for strength. You would normally use this callback when creating your user, bit since I am providing a over-simplified user creation, I didn't account for that. I will add a note to the installation instructions. FYI, a password like "Something1" has an uppercase letter, a number, and is long enough to pass validation. "Rrakibtg1" would also be an acceptable password.
Thanks skunkbad, yes once i change the password then it worked.
also i think we need a option to disable this feature? again, great library! thanks for the library (06-27-2015, 02:50 AM)rakibtg Wrote: Thanks skunkbad, yes once i change the password then it worked. I could make this a setting, but even then the default would have to be password strength be checked, for everyone's safety. If you want to be able to disable the password strength checking, you can modify the form validation rules in .third_party/community_auth/config/form_validation/auth/login.php. If you remove the check, you should at least replace it with a max_length[255] or something.
I think i am messing up with the library :/ i cant understand how to call the function from the controller, for example here is how i am loading the view:
Code: $this->load->view('template/header', [ Code: $this->load->view('template/header', [ please help
First, look at the Examples controller. Like the Examples controller, your controller needs to extend MY_Controller. MY_Controller, which should now be in your application/core directory needs to have been copied from the community_auth/core directory. This is part of the installation instructions.
Now that you have your controller set up to use Community Auth, consider this: Code: <?php Take a look at the _set_user_variables() method in Auth_Controller to see the variables that are available for you to use. Also, the Community Auth documentation shares this information: http://community-auth.com/documentation/...-variables
Hi skunkbad ,
i am trying to implement the community auth in my project but i am facing issue. The jar is always coming empty when i try to login. Can you please help me so i can implement it smoothly. I create a user admin1 but every time when i try to login it is giving following error. Login Error: Invalid Username, Email Address, or Password. Username, email address and password are all case sensitive. I also checked it via make log and it is going in this code section in authentication.php library: /** * If a login string and password were posted, and the form token * and flash token were not set, then we treat this as a failed login * attempt. */ else if( ! is_null( $string ) && ! is_null( $password ) ) and reason is token_jar = []. So i want to understand the issue what i have done wrong. Please check once and reply (08-08-2015, 12:18 AM)vsuri Wrote: Hi skunkbad , Does your token cookie exist? Are you using the default login form? If you have customized a form, please show some code. |
Welcome Guest, Not a member yet? Register Sign In |