Redux Authentication 1.4a (24th July 2008) |
[eluser]little brittle[/eluser]
I got HTML email working by switching over to the mail protocol since I can't get SMTP or sendmail working with redux_auth. I do have a couple other questions about the library. Can we disable the question/secret answer part of registration? Ideally, I'd just like to send users a password reset email after they input their email address into a "forgot password" form. Is there any way to limit new registrations to a certain domain or array of domains? For example, if I'm making a corporate intranet site, it would be nice to limit registrants to those with an official email address. Is there a way to store a timestamp of the registration date?
[eluser]Fenix[/eluser]
I'm not sure if this is where I'm supposed to post support requests but... If this is my admin dashboard controller, am I using logged_in() correctly? For starters, I need this page to only be accessible by people who are logged in. Secondly, I need to check for authorization for the particular page (that the user is an admin). Code: <?php Thanks in advanced for some help. IMO common tasks like these should be tutorials in the user guide ^__^
[eluser]Mellis[/eluser]
This is a response to the previous post (#270) Hello, This is how I handle authentication in an application with redux auth. I altered some files: (btw sorry that documentation in the code is non existent at the moment) ./app/libraries/redux_auth.php // added this to constructor: Code: ... this is the function used in the constructor Code: /** This is the code I added to the library to be able to check if a user belongs to the right group for a certain area of the app. Code: /** I have altered the logout function in redux_auth because I was unable to send flashdata through the is_auth() function (was caused by the sess_destroy) Code: /** this is what is altered in my login function in my user controller: ./app/controller/user_controller.php Code: public function login() and then, anywhere I want (and load the redux_auth library) I check for the right level of auth like this: ./app/controller/shop_controller.php Code: public function shop($id, $next) or you can use it in the constructor of the controller to check with the same arguments for every function in that controller or you can use it without the second argument and check like this: Code: if($this->redux_auth->is_auth(AED_SHOP, 'LOGIN')) for whatever secion I have, I can create a new privilege rule. This works for me, however I have some questions of my own: There must be a better place to declare the rights than the constructor of the redux_auth library. Anybody have a suggestion? Is it ok to just unset the userdata('id') to log someone out? (seems fine, but maybe I'm missing something) Does anybody have any suggestions in general? Thanks in advance. And hope this helps a little. Bye now.
[eluser]Unknown[/eluser]
Having nothing but trouble installing redux, hope somebody can help me out. - I've downloaded and unzipped 1.4a. - Changed the PHP version at my site from 4 to 5. - Uploaded the library and config files. - Created the db tables using "install.sql". - Made the changes described in the documentation's "Installation" section. - Generated an encryption key. - Generated a salt key. - Noticed that the "Controllers" documentation link is broken, but assumed that what I needed could be found in the examples documentation. Now, no matter what combination controller- and view- names I try, using the sample code in the docs, I either get a simple 404, or a "cannot load requested page" error. Can someone explain exactly the configuration and names of the controller(s) and view(s) required to make this work? Thanks, Greg
[eluser]Popcorn[/eluser]
Hello, I have been away working on some projects so you can rest assured I have not forgotten all of you. It seems like an update is in order. little brittle Quote:For some reason, html email isn’t working during registration. I can receive the registration email if I change the mailtype to “text”, but nothing arrives if it is html. I set the auth controller up so it echos “success” if it mails without errors, and it echos “success” even though it isn’t being sent. I've been sending html emails with Redux Authentication 1.4 without any errors. Can you provide a code example which is just needed to replicate the bug and I will look into this. mcrafal Quote:The same. Cannot use email class when redux autoloaded. Try loading the email library before redux. If that doesn't work can you provide me with a code example to replicate the bug. little brittle Quote:Can we disable the question/secret answer part of registration? Ideally, I’d just like to send users a password reset email after they input their email address into a “forgot password” form. No, these would both require modification and I suggest you change the code to suit your needs Quote:Is there any way to limit new registrations to a certain domain or array of domains? For example, if I’m making a corporate intranet site, it would be nice to limit registrants to those with an official email address. Easy, create a validation callback with a regular expression to see if they've used the correct email. Quote:Is there a way to store a timestamp of the registration date? This is something I've decided that needs to be added and you will see it in the next version Fenix Quote:am I using logged_in() correctly? Yes Quote:Secondly, I need to check for authorization for the particular page (that the user is an admin). The get group function will retrieve the current group of the logged in user. Just pass the session user id as the parameter. Mellis I will check your code over later. Quote:Is it ok to just unset the userdata(’id’) to log someone out? (seems fine, but maybe I’m missing something) Yes, it should be fine. Greg Griffith Sorry to hear your experience. The documentation is outdated and is one of the reasons it should not be used. You can find a newer documentation at Amazon. https://redux.s3.amazonaws.com/index.html TODO version 1.5 *Improved security (No longer requires hash column in users table), *Better documentation, *Change password feature, *Registration date. *A proper sample application to demonstrate all functionality of redux. *Fix the php switch bug. And hopefully a more elegant email solution. Kind Regards, -Mathew Davies.
[eluser]CARP[/eluser]
Cool Thanks Mathew. We'll be waiting for the 1.5 It sounds very promising
[eluser]Unknown[/eluser]
Hi, I was just wondering if there was a way to move the email_activation_message, forgotten_password_subject and new_password_message out of the conf file so that we can use templates, css and other variables like site urls and things without hardcoding it into every template. Thanks!
[eluser]Xeoncross[/eluser]
[quote author="Popcorn" date="1219807985"] *A proper sample application to demonstrate all functionality of redux.[/quote] Can't wait for that!
[eluser]Mellis[/eluser]
Instead of saying that I can't wait for the next edition to come by, I want to offer some help. So Popcorn, if you get a chance (find the time) to look at the stuff I added, maybe you can judge if you could use my help for your project. (I'm also quite occupied, but every little bit helps right?) Greets
|
Welcome Guest, Not a member yet? Register Sign In |