Welcome Guest, Not a member yet? Register   Sign In
Another auth question (aka I need advice)
#1

[eluser]instantations[/eluser]
Hey guys,

I have an authentication dilemma. I need an auth system with:

- user roles (superadmin, admins, users...)
- "remember me" checkbox
- looping to the same page upon login (cause redirecting to some default page is so web 1.0... lol)
- extended user profile/settings
- registration with email validation
- forgotten password retrieval
(and I don't need top-notch security)

I have been trying FreekAuth Light and it doesn't seem to do it all (the looping thing is most important to me).

My question is:
Should I
1) code it myself (from scratch)
2) tweak FAL (I don't feel too confortable with that) (or maybe someone else already has)
3) use another existing library

Thanks in advance for your precious input,
Laurent
#2

[eluser]danoph[/eluser]
I am working on a model/library called EzAuth that does exactly what you are asking for. If you can wait a few days I will have it up for download!

Features:
- pages are protected with a user-defined array
- can be used to manage multiple programs on one domain name
- redirect feature after login to user-defined page
- roles (user/admin/custom defined)
- registration with optional e-mail validation
- forgotten password retrieval

This also integrates seamlessly with my other libraries I am building, such as a CMS system, e-commerce system, message board, etc...
#3

[eluser]instantations[/eluser]
I can wait (I'm working on my project on my free time) and I will definitely check your library. Thanks a lot.
#4

[eluser]danoph[/eluser]
I posted a link to my new ACL/user management system in the Ignited Code section. Check it out at http://bizwidgets.biz/solutions/ezauth/
#5

[eluser]instantations[/eluser]
I'm trying your model, and in your user guide, you print this:
Code:
$login_ok = $this->ezauth->login();    // $login_ok is true or false depending on user login information

I couldn't get it to work and I noticed the login function doesn't return true or false, it returns an array.
Code:
return array('authorize' => true);
or
Code:
return array('authorize' => false, 'error' => 'Invalid username/password combination!');

Thus testing whether login was successful should use:
Code:
if ($login_ok['authorize'] == true)
and not as printed in your user quide:
Code:
if ($login_ok == true)
Shouldn't it?
#6

[eluser]danoph[/eluser]
Yes, thanks for pointing out that bug. I will get that fixed asap.

Thanks again!




Theme © iAndrew 2016 - Forum software by © MyBB