Welcome Guest, Not a member yet? Register   Sign In
Need basic user auth features
#1

[eluser]php_guy[/eluser]
I'm looking for a library that will give me very basic (but robust) user authentication/management features, such as: user registration & activation (via email), login, logout, forgotten password. The goal is to only allow registered and logged in users to access my web application.

I've been playing gwith reduxauth but have had no luck in even getting it to run and register a single user. Is there something better out there I should be looking at? I prefer something simple and reliable.

Any help is appreciated. Thanks.
#2

[eluser]php_guy[/eluser]
ok, I found Ion Auth while looks like is taking over for Redux Auth. http://github.com/benedmunds/CodeIgniter-Ion-Auth

Now dumb question time...I'm a CI beginner....if I'm using a structure like this:

->ci
->application
->myapp
->system

Where do I place the Ion Auth files?
#3

[eluser]2think[/eluser]
Hi php_guy,

Check out this CI wiki page for information regarding a secure setup. You may be localhost for now but it doesn't hurt to know this and perhaps emulate it on your dev machine if you can.
http://codeigniter.com/wiki/Better_Server_Setup_for_CI/

The Ion_auth solution and Matt's Auth solution rely on - but are not only - libraries. Unzip the packages and you should find a list of files that you copy into your respective "application" folders (see the setup above or in the default setup, still it's your application folder).

I came to PHP and CI from a Java,C & C++ background and can tell you that the auth solutions were often a lot to grasp at first. What I did was learn (and write) some basic sites on my own dev machine and used simple (insecure) cookie logins to understand CI as a framework first. I'm not all the way there yet but doing better I hope.

Ion Auth: http://ellislab.com/forums/viewthread/145263/
Matt's Auth: http://ellislab.com/forums/viewthread/142785/
#4

[eluser]php_guy[/eluser]
ok, I have the code in the right place now.

Now, what would be the URL to register a new user? I see auth/create_user.php in the Views directory.
#5

[eluser]php_guy[/eluser]
PHP Fatal error: Call to undefined function redirect() in ...controllers/auth.php on line 15

Any idea why it's complaining about not finding the redirect() function? I have not changed the Ion Auth files - just using base files and examples for now.
#6

[eluser]php_guy[/eluser]
Answering my own questions :-)

URL Helper wasn't loaded




Theme © iAndrew 2016 - Forum software by © MyBB