Questions tagged [tankauth]

Tank Auth is an authentication library for PHP-framework CodeIgniter. It's based on DX Auth, although the code was seriously reworked.

Tank Auth is an authentication library for PHP-framework CodeIgniter. It’s based on DX Auth, althouth the code was seriously reworked.

The key points of the library are:

It’s simple:

  • Basic auth options (login, logout, register, unregister).
  • Very compact (less than 20 files and 4 DB-tables).
  • Username is optional, only email is obligatory.

It’s secure:

  • Using phpass library for password hashing (instead of unsafe md5).
  • Counting login attempt for bruteforce preventing (optional). Failed login attempts determined by IP and by username.
  • Logging last login IP-address and time (optional).
  • CAPTCHA for registration and repetitive login attempt (optional).
  • Unactivated accounts and forgotten password requests auto-expire.

It’s easy to manage:

  • Strict MVC model: controller for controlling, views for representation and library as model interface.
  • Language file support.
  • View files contain only necessary HTML code without redundant decoration.
  • Most of the features are optional and can be tuned or switched-off in well-documented config file.

It’s full featured:

  • Login using username, email address or both (depending on config settings).
  • Registration is instant or after activation by email (optional).
  • “Remember me” option.
  • Forgot password (letting users pick a new password upon reactivation).
  • Change password or email for registered users.
  • Email can be changed even BEFORE account is activated.
  • Ban user (optional).
  • User Profile (optional).
  • CAPTCHA support (CI-native and reCAPTCHA are available).
  • HTML or plain-text emails.

Tank Auth is tested in CI 1.7.0, but should be working for above version.

Library home: http://konyukhov.com/soft/tank_auth/

Download link: http://konyukhov.com/soft/tank_auth/tank_auth.zip

Project repository: https://github.com/ilkon/Tank-Auth/

173 questions
2
votes
2 answers

Best approach to create Tank_Auth in CI

I just installed Tank_Auth in Codeigniter and would like to develop a CMS and to know what is the best approach to create an admin account and client account. Do I have to separate one CI directory and controller for a public website and another CI…
qpixo
  • 39
  • 8
2
votes
1 answer

Redirect to original page after logging in (Codeigniter)

The entire website requires a user to login before viewing the page. If the user is not logged in, he gets redirected to the login/registration page. Problem: When a user that is not logged in types in a url like http://www.domain.com/listings/1234…
Nyxynyx
  • 61,411
  • 155
  • 482
  • 830
2
votes
1 answer

Codeigniter tank auth

I am wondering if someone can help me, I have recently moved my site live to test it so I basically copied the database and uploaded the files. This means that I had already set up a user account on my local server. However, I have found the login…
helpme
  • 21
  • 1
2
votes
2 answers

Most secure PHP 'access denied' method

I'm building a site that has one authentication system for both general users and administrative users (using CodeIgniter and Tank Auth, for anyone interested). They are differentiated based on profile credentials. (Is this a secure approach?) My…
Eric Di Bari
  • 3,767
  • 7
  • 40
  • 49
2
votes
3 answers

CodeIgniter Tank Auth - problem with send_again function

I have been playing around with this library, which is absolutely awesome. I was testing it and I think there's a problem when a non activated User tries to log in. I was just wondering if any of you noticed this already? What happens is that the…
Ricardo
  • 21
  • 2
2
votes
2 answers

CodeIgniter passing array with queries into view

Hi I am having an issue getting the view to show any results for the following code. Controller: $datedue = 2011-01-27; $username = $this->tank_auth->get_username(); $sql = "SELECT taskid FROM relationships WHERE username = ? AND datedue =…
Jason
  • 23
  • 1
  • 3
2
votes
1 answer

CodeIgniter Tank Auth

I am making use of this excellent library called Tank Auth. Hopefully this question won't be too niche as its specific to this library. I am trying to work how I can login a user as soon as they have registered. It seems this library doesn't offer…
Abs
  • 56,052
  • 101
  • 275
  • 409
2
votes
2 answers

Codeigniter tank auth - user gets logged out for no known reason

I am using the codeigniter tank auth library for working with users and it has been working great. Whenever I try to access any controller, the function checks if the user is logged in like this: if($this->tank_auth->is_logged_in()) { If it's…
Manny Calavera
  • 6,815
  • 20
  • 60
  • 85
2
votes
0 answers

Codeigniter Tank Auth login as another user

I have parent/childs relation established into tank_auth users.. I need to develop some code to allow parent user to be logged as any of his child users. Also the logout feature when you are logged as child should let you back to your parent…
fjrial
  • 23
  • 8
2
votes
1 answer

How can I tell Tank Auth to not activate users at all?

For the CodeIgniter project I'm creating, it is necessary that users get activated manually by an admin after registering. Currently I'm using Tank Auth (http://www.konyukhov.com/soft/tank_auth/) for user authentication, and it seems to be missing…
winsmith
  • 20,791
  • 9
  • 39
  • 49
2
votes
1 answer

Captcha not showing up Codeigniter & Tank_Auth

I use Tank_Auth for registration in my codeigniter app. I enabled Captcha Registration but it is not showing. I chmodded my folder to 777 and the path is right so it should show up. My Tank_auth.php config file: $config['captcha_path'] =…
Kees Sonnema
  • 5,759
  • 6
  • 51
  • 106
2
votes
3 answers

CodeIgniter tankauth not working with GMail

I've WAMP server setup on local dev environment (php_openssl extension enabled). I installed Code Igniter and trying to configure TankAuth, where I want to use GMail (actually Google Apps) to send test mails. I went through following URLs for…
Kapil Sharma
  • 10,135
  • 8
  • 37
  • 66
2
votes
1 answer

Codeigniter: function runs every time page is refreshed

Ok, so i have a test page right now that is just testing my point system. Pretty much when the user his the button, it gives them 5 points. The problem right now is everytime i refresh the page the user gets 5 points. What is up with this? If…
ageoff
  • 2,798
  • 2
  • 24
  • 39
2
votes
3 answers

Short functions from a Codeigniter's library

I got a Tank Auth library installed in my Codeigniter package, the problem is that I don't like how to is_logged_in functions need to be called because it's simply long and not so friendly, as I need to…
Sapp
  • 624
  • 2
  • 7
  • 13
1
vote
1 answer

Codeigniter, tank_auth code doesnt work after moving to the new server

After moving to the new server, I'm getting plenty of such notifications: A PHP Error was encountered Severity: Notice Message: Trying to get property of non-object Filename: account/settings.php Line Number: 28 account/settings.php view @line…
Cyclone
  • 14,839
  • 23
  • 82
  • 114
1
2
3
11 12