Community Auth Learning... |
And the method in line number 175 under auth_model.php
Is this, Code: /**
Delete is a method from CI's database classes, and the error you are seeing indicates that either db was unset or never loaded. It's likely that this was a problem with the server / MySQL. Are you having other problems with MySQL?
FYI, this is my testing environment.
I'm using XAMPP with MariaDB it works the same with MySQL, since they ditch MySQL and replaced it with MariaDB. I restarted XAMPP and turned on apache and MySQL (MariaDB) and visited this link below http://localhost/phpmyadmin/ and no error show up, meaning MariaDB is working fine. Currently using InnoDB engine in MariaDB, by the way InnoDB is also called xTraDB in MariaDB. Perhaps you can try the latest XAMPP to test Community-Auth under it since MySQL is really getting rusty. https://www.apachefriends.org/index.html Will try to find out at my end as well the culprit. Just in case you fixed the bug let me know as well. thanks in advance.
Okay no worries for that bug I found the culprit.
I Just remove these redundant methods that I incorporated last night. Code: public function __set($tableName, $value) bug fixed (11-30-2015, 07:33 PM)solidcodes Wrote: FYI, this is my testing environment. I've been curious about MariaDB, but never worked on a production environment that had it, so never had it on my development environment. I'm running all my development environments on Ubuntu (Linux) as of 13 months ago. I'm sure setting up MariaDB is super easy, so one of these days I'll check it out. I rarely have issues with MySQL, and you say it is "really getting rusty". What do you mean by that? Is it not well maintained anymore? What do you think are the best benefits of MariaDB? I guess this is way off topic now. Maybe you can just send me a private message.
By the way how do I call one of the method in /third-party/community-auth/libraries/authentication.php inside my custom made controller?
thanks in advance.
I want to match the 'pass_string' a.k.a. password from the form versus the password currently inside the databse.
So far this is what I did. Code: public function show_pass_salt() Eventhough one of the password in the DB is 'Retinitis9' it did not match one of them. What's the proper way to match the password from a form versus the current password in the DB. thanks in advance. (12-01-2015, 06:35 PM)solidcodes Wrote: I want to match the 'pass_string' a.k.a. password from the form versus the password currently inside the databse. The proper way to check if the password matches a specific user would be to get the user's hashed password and salt from the user's table, and with the password you want to check call the authentication libraries check_passwd method: PHP Code: $pwd = 'Retinitis9'; If you need to check a bunch of different users to see if the password matches one of theirs, you might do something like this: PHP Code: $pwd = 'Retinitis9';
|
Welcome Guest, Not a member yet? Register Sign In |