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
1
vote
2 answers

Handling php redirect in ajax call when codeigniter/tank auth session timeout reached

Hey all I have a javascript function within a codeigniter view that retrieves some information from a codeigniter controller function that is acting strangely when the timeout for a user's session is reached. Within the called php function I have a…
Will Sampson
  • 504
  • 6
  • 22
0
votes
1 answer

how to integrate Tank auth on a website?

I've installed codeigniter on my server and made Tank auth work fine, too. now I want to know how to access Tank auth from my php pages. do I have to use include function so the login is placed inside my original php page or there is a better way…
Digital site
  • 4,431
  • 12
  • 48
  • 72
0
votes
1 answer

captcha or recaptcha at Tank Auth

I was trying to make the Tank Auth to work on my web server and so far so good. The only problem I'm facing now is the captcha. it doesn't seem to work at the registration form. I mean I can't see the image at all. is there something I'm missing…
Digital site
  • 4,431
  • 12
  • 48
  • 72
0
votes
2 answers

Login issue with tank_auth (codeigniter authentication library)

I have a php(with codeigniter framework) website which is using tank_auth. My problem is, I can register and login in localhost but whenever I try to login in my host, login doesn't work. Same code, same database, same everything. No error…
dhargan
  • 408
  • 1
  • 3
  • 16
0
votes
1 answer

Codeigniter: Why does tank use InnoDB instead of MyISAM?

I installed Tank_Auth and saw that it's using InnoDB while my tables are all using MyISAM. Will this be a problem? Should I change it to MyISAM?
enchance
  • 29,075
  • 35
  • 87
  • 127
0
votes
2 answers

How do I put CodeIgniter's/TankAuth's register and login forms on the same page?

I'm using CodeIgniter for my php framework and TankAuth for my authorization/registration. By default, TankAuth places the registration and login forms on separate pages. I would like to place the log-in form in the navigation bar that occurs on…
sdasdadas
  • 23,917
  • 20
  • 63
  • 148
0
votes
0 answers

Codeigniter Tank_Auth used as a HMVC module along with the Template library

I've successfully configured and run HMVC on my clean install of Codeigniter 2.1.0 Then I've included Template library. It consist of only 3 files: /system/library/Template.php, /application/config/template.php and finally, template file itself…
developer10
  • 1,450
  • 2
  • 15
  • 31
0
votes
1 answer

Configuring Codeigniter with Tank Auth

Something in my CI configuration is missing a "/" that Tank auth view files are expecting and I can't figure it out. I hope you can! Here are some details: $config['base_url'] = 'http://localhost/CI/'; I do not have .htaccess set up (so I still…
user1072910
  • 263
  • 1
  • 5
  • 17
0
votes
2 answers

Tank Auth: automatic login on email verification

I am using Tank Auth, and require my users validate their email addresses. Upon validation, users are still not logged in. I would like users to be automatically logged in when activating their account. In my previous version (home-grown auth) I…
Mala
  • 14,178
  • 25
  • 88
  • 119
0
votes
1 answer

Tank Auth value, set_value, and form validation issue

I'm using Tank Auth (it's working fine), but I can't get the form validation function to work when I include any value in the variable array along with set_value. I need these values as a label for form fields--they tells the user what to enter in…
chowwy
  • 1,126
  • 8
  • 26
  • 45
0
votes
2 answers

Using tank_auth with multi type user and HMVC

Using Tank Auth for first time along with HMVC. In my application there are 2 type of user one is say student and another is institute. I created two modules for each user type and separated the tank auth library , both user's registration, login…
Mukesh Yadav
  • 2,256
  • 2
  • 33
  • 51
0
votes
2 answers

Some browsers cannot log in with Tank Auth

I am using Tank Auth for user authentication. I am using the database to store sessions and using $this->auth->tank_auth->is_logged_in() to check if user is logged in. HMVC is also used, where auth module contains tank_auth. Problem: It seems that…
Nyxynyx
  • 61,411
  • 155
  • 482
  • 830
0
votes
2 answers

Codeigniter search with join

I'm not sure why this code isn't working, so any help would be appreciated. I want to search for a users username and also show the name of their character, which is store in the profile table. $search =…
Mr Lahey
  • 656
  • 3
  • 15
  • 31
0
votes
1 answer

How to call Module function in Codeigniter HMVC? Tank auth

I have installed tank auth to save me time creating a authentication script. As I am using HMVC, tank auth has it's own module (modules/auth). How can I protect my other modules (/admin, /members etc) with the login script?? From what I have read I…
hairynuggets
  • 3,191
  • 22
  • 55
  • 90
0
votes
2 answers

Using Codeigniter and tank auth in phonegap on Android

I am trying to implement a Codeigniter based app on Android via phonegap, all works well apart from logging in/out with tank auth. When the login form is submitted it keeps showing a dialog saying 'Complete action using' with an option to select a…
rev_dev_01
  • 500
  • 3
  • 20