DX Auth 1.0.6 (Authentication library) - 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: DX Auth 1.0.6 (Authentication library) (/showthread.php?tid=13644) |
DX Auth 1.0.6 (Authentication library) - El Forum - 03-12-2009 [eluser]RS71[/eluser] Thank your for your informative post CroNiX What about user specific permissions? DX Auth 1.0.6 (Authentication library) - El Forum - 03-12-2009 [eluser]CroNiX[/eluser] Yes, you can check by role or by specific permissions. DX Auth 1.0.6 (Authentication library) - El Forum - 03-13-2009 [eluser]tpchris[/eluser] I started having an issues with the line of code below that's in DX_Auth.php. $this->ci->load->library('Email'); After I register an email is supposed to be sent however at this line of code the following error is thrown. Fatal error: Call to a member function from() on a non-object in \www\v2\system\application\libraries\DX_Auth.php on line 175 If I comment out that line and autoload the Email library it works perfectly. I just can't figure out why its causing an issue. I even tired changing Email to email with no luck. Any suggestions? Code: function _email($to, $from, $subject, $message) DX Auth 1.0.6 (Authentication library) - El Forum - 03-14-2009 [eluser]hugle[/eluser] Hello everyone. I've been using this library for a while, and it is working just great. I came out now to one more question, If I log in under http://domain.tld, and thne come to http://www.domain.tld - at www. I am not signed in, while at http://domain.tld I am still logged in. How I can make login to work kunder all http://*.domain.tld ? Thank you ! DX Auth 1.0.6 (Authentication library) - El Forum - 03-14-2009 [eluser]CroNiX[/eluser] Whats your $config['cookie_domain'] set to in your config/config.php? DX Auth 1.0.6 (Authentication library) - El Forum - 03-15-2009 [eluser]RS71[/eluser] [quote author="CroNiX" date="1236930044"]Yes, you can check by role or by specific permissions.[/quote] Could you give some information please on how I'd be able to do this with this library? From what I've seen in the user guide the permissions seems to be more role based DX Auth 1.0.6 (Authentication library) - El Forum - 03-15-2009 [eluser]CroNiX[/eluser] Code: if ($this->dx_auth->get_permission_value('edit')) You assign permissions by role, like: Role: Editor Permissions for Editor: 'save_article', 'edit_article' Then in you code, you can either check: if role = 'Editor' allow or disallow OR if permission = 'save_article' allow or disallow or however you set it up. DX Auth 1.0.6 (Authentication library) - El Forum - 03-15-2009 [eluser]RS71[/eluser] [quote author="CroNiX" date="1237182365"] Code: if ($this->dx_auth->get_permission_value('edit')) You assign permissions by role, like: Role: Editor Permissions for Editor: 'save_article', 'edit_article' Then in you code, you can either check: if role = 'Editor' allow or disallow OR if permission = 'save_article' allow or disallow or however you set it up.[/quote] Thank you for your explanation CroNiX Unfortunately it looks like I'll have to make the user permissions myself. DX Auth 1.0.6 (Authentication library) - El Forum - 03-15-2009 [eluser]CroNiX[/eluser] Yes you do. There aren't default permissions since each application designed with this library would most likely need different permissions. If you install the library, there is a view which will allow you to add permissions to roles, and create roles, etc. Its pretty full featured. DX Auth 1.0.6 (Authentication library) - El Forum - 03-16-2009 [eluser]Wooo[/eluser] I'm trying to install DX Auth, with no luck. I hope someone can help me on my way. I've put all the files in the right directories, and created the tables. Now, when I go to /auth/login, I get this error: Quote:Error Number: 1064 Does anyone have an idea what could be the cause of this? I'm running XAMMP on Vista, PHP Version 5.2.5, MySQL version 5.0.51a. |