-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Storing data #580
Comments
The same thing happened to me using the model->insert method. |
This area in the protectIdentifiers method code looks suspicious to what may be causing your issue: |
I've run into this previously and thought I had it conquered but perhaps not :) can you share the code you're using so I can recreate? I'm pretty sure it was happening previously due to it be double escaped. |
below is the code $usermodel = new UserModel(); $hashpass = \App\Libraries\Auth\Password::hashPassword($password); |
A couple of assumptions, please tell me if I'm wrong:
What does the hash look like after it's generated? Is it the same as in your image above? |
yea its same as the above image. i even ran a the regular query without the model, same thing |
Ok, thanks for the confirmation. I will try to look into this tonight, but with a Holiday here in the states, and a sick kid, it might not happen for a couple of days. |
oh sorry about the kid, well project is been used for is not going live soon, so it cool |
@chistel Pull down the latest code and let me know if you run into any issues. I managed to get a bit of free time before calling it a day here. I've reworked how named bindings works with the Query object and this should help, but still feels a touch hacky. Tests pass but I don't have a full-fledged app yet to test it under a variety of use-cases. |
(y) nice one, it worked absolutely well @lonnieezell |
Awesome. Closing. |
I don't know if I have to attribute this issue to codeigniter or a something else.
I tried to save an hashed password using the php hash function, but it truncates the first 4 char of the hashed password. mind you, I applied same rule regarding using that function. I applied same function in codeigniter 3 it worked well.
The text was updated successfully, but these errors were encountered: