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-29-2009 [eluser]dhuang[/eluser] Hi guys and gals, I'm new to this auth library and so far I like it! I was wondering how one would go about registering and logging in user using their emails and not by usernames. I noticed there was a DX_login_using_username and DX_login_using_email in the dx_auth config, what steps do I take to accomplish this task? Thanks, D DX Auth 1.0.6 (Authentication library) - El Forum - 03-31-2009 [eluser]samseko[/eluser] have a look at your system/application/config/dx_auth.php , in particular: $config['DX_login_using_username'] = TRUE; $config['DX_login_using_email'] = TRUE; DX Auth 1.0.6 (Authentication library) - El Forum - 03-31-2009 [eluser]Julius Romo[/eluser] Hi. I'm new in this, and I am having problems with check_uri_permissions This is my changelog.php controller: Code: <?php This is the answer: Quote:A PHP Error was encountered Permission is set in backend What is wrong? Thank u very much DX Auth 1.0.6 (Authentication library) - El Forum - 04-01-2009 [eluser]Julius Romo[/eluser] I have solved my problem... just a stupid mistake... Well, now I post with a suggestion to make. uri_permissions_inverse This is.... I have a great site, with a lot of pages, etc... I have some roles with different permissions I would have to write all the urls for each group... what about to forbid accesses? For example: Role UsersMax: Can visit all the sites, except the one dedicated to moderators / -/onlymods/ This could make easier to manage permissions... DX Auth 1.0.6 (Authentication library) - El Forum - 04-01-2009 [eluser]ลุงบ๊อบ[/eluser] When image captcha in captcha folder will be prune away ? or I must delete by myself ? DX Auth 1.0.6 (Authentication library) - El Forum - 04-01-2009 [eluser]ลุงบ๊อบ[/eluser] Can DX Auth check username available ? DX Auth 1.0.6 (Authentication library) - El Forum - 04-02-2009 [eluser]Julius Romo[/eluser] Yes, it checks it. And email is checked, too DX Auth 1.0.6 (Authentication library) - El Forum - 04-09-2009 [eluser]RedLeader[/eluser] Hey DX_Auth gang! I've been happily using dx_auth while developing and have recently run in to an interesting problem. For my site I do not want username to be required or unique. In fact I don't really need them at all. I am happy that a user's email address is unique enough for the purposes of this site. This was all going fine but recently I tried the "reset password" functionality but it depends on the username existing AND being unique (because it does a SELECT on the database with the username). I can see where in the dx_auth code all this is taking place so I can go in and change it BUT I wanted to check with you guys (and gals) first in case I was missing something before I start customising the core dx_auth functionality! e.g. One change I would need to make is change the following line to NOT user $row->username and use their email address instead. DX_Auth.php, line 1058: Code: // Create reset password link to be included in email Then later I would need to use the function get_user_by_email($email) instead of get_user_by_username($username). So is there a "built-in" way to have the rest password functionality depend on just an email address (and the authentication code) instead of the username? Or do I need to make the code changes above myself? Thanks for any help you can offer! DX Auth 1.0.6 (Authentication library) - El Forum - 04-09-2009 [eluser]RS71[/eluser] Hey I have my controllers placed within folders. If I use the check_uri_permissions, it wont let me use the folder as part of the permission. For example, if I have /users/controller/function, the permission has to be /controller/function, so if I have /admin/controller/function, the person could potentially access the controller/function in the admin foler. Could you guys have it so I can have folder as part of the permission? DX Auth 1.0.6 (Authentication library) - El Forum - 04-10-2009 [eluser]Gromozeka[/eluser] Hey RedLeader, Please try the latest version of Tank_Auth. It's based on DX Auth, and it works fine with or without username: http://ellislab.com/forums/viewthread/110993/ |