ErkanaAuth: A non-invasive user authentication library |
[eluser]hotmeteor[/eluser]
This is great, and very helpful. Thanks Michael. One fix I think: Line 31, should read: Code: parent::Public_Controller();
[eluser]cheshirecat[/eluser]
Hi! I'm using Erkanaauth for a few days and it's great - great in its simplicity. But I have a small trouble in try_login(). I'm not good in PHP yet. I've made my auth methods similar to the ones found in this forum. There are two ways: Code: //first And that's surprising me they both are not working good. In the first case the login form always redirects me to the login form - not to the admin panel, none the less username and password are good. In the 2nd case the library checks only username - you can write everything as the password and it says it is correct. So it is not very secured ;-) Can you please tell me how it should look like? My admin class looks like this: Code: class Admin extends Controller
[eluser]AmazingMinds[/eluser]
I've just started using the newest version of the Authlib (and CI for that matter) and though it's wickedly versatile, I am stumbling over something, which is prolly CI related.. I'm using a simple form in my view Code: <?echo $userName;?> Login stuff is processed by the following controller: Code: <?php Now, when I fill in the login/password combo and click login, the login is granted. However, it's not until I refresh the page (both in IE and FF) that the session-id is provided and I'm actually logged in. I'm getting the feeling there's something really basic that I'm doing wrong, but I just seem to miss it...
[eluser]swanky[/eluser]
Great library! Thank you, it is just what I was looking for. I have a decidedly minor improvement that I thought I'd share. I wanted to be able to choose the redirect page on a case by case basis so I made a minor edit change to the My_Controler.php code. Code: // This function is used to prevent a user from accessing a method if they are logged in Code: $this->_no_user_access('logout'); Code: $this->_no_user_access('super_cool_members_only_page'); Hope someone else can use it too.
[eluser]Unknown[/eluser]
Here is a cut and paste version of erkanaauth /libraries/erkanaauth.php Code: <?php if (!defined('BASEPATH')) exit('No direct script access allowed'); and /libraries/MY_Controller.php Code: <?php if (!defined('BASEPATH')) exit('No direct access allowed.'); and 2 examples Code: Class Ct2 extends Public_Controller { ------- Code: <?
[eluser]halex[/eluser]
Excuse a noob (in CI and php) question: I have: Code: class Comm extends Auth_Controller Code: Call to undefined function redirect() in ...\application\libraries\MY_Controller.php on line 35 In the log file I have: Code: ......
[eluser]halex[/eluser]
I'm stupid, ignore my last post. All is clear and OK.
[eluser]RunningDan[/eluser]
What is $this->data? Code: $this->data->user I get this error when I request a controller that inherits Auth_controller: Quote:A PHP Error was encountered Line 31 is in here: Code: class Auth_Controller extends Public_Controller { I don't understand what data in this context? My controller looks like this: Code: <? Thanks
[eluser]Unknown[/eluser]
[quote author="RunningDan" date="1209413038"] Line 31 is in here: Code: class Auth_Controller extends Public_Controller { Open up your MY_Controller.php file and make the following changes: The Auth_Controller class is missing this line in its constructor: parent:ublic_Controller(); So it should be this: Code: class Auth_Controller extends Public_Controller { I wasn't entirely sure about this next one, but I haven't noticed any repercussions as a result (but I haven't exactly used this library very much yet). The Admin_Controller class has: Code: parent::Controller(); Instead of: Code: parent::Public_Controller();
|
Welcome Guest, Not a member yet? Register Sign In |