Welcome Guest, Not a member yet? Register   Sign In
Tank auth vs Ion auth
#1

[eluser]Unknown[/eluser]
What are the main differences between tank auth and Ion auth conisdering a Beginner ??
#2

[eluser]DavidMann[/eluser]
This link at StackOverflow http://stackoverflow.com/questions/34698...ry-is-best is a very thorough explanation of why Tank_Auth may be the "best" authentication library for a lot of complex reasons. As a beginner, like yourself, I found Ion_Auth much easier to implement mostly because of its better documentation.

I think it's also indicative that at the time of writing this reply the thread for Ion_Auth on this forum has 116 pages, whereas Tank_Auth has 47. It's not exactly evidence, but it suggests that there's more interest in discussing Ion_Auth.

If you choose to go with Ion_Auth, make sure you read Ben Edmunds introduction at http://ellislab.com/forums/viewthread/145263/ He makes it clear that the controllers and views that he provides are just samples. Don't feel bound by them. For instance, I'm creating an admin area where only admin can create users. I don't want casual visitors registering. So, if admin successfully logs in, I want the auth controller to redirect the administrator to /admin/home. I changed:
Code:
redirect($this->config->item('base_url'), 'refresh');
to:
Code:
redirect('admin', 'refresh');

Obviously, that redirect depends on having a suitable route expression set in route.php




Theme © iAndrew 2016 - Forum software by © MyBB