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
1 answer

CodeIgniter Tank Auth library: allow spaces in user name

Is there any way to allow spaces in user names Name Givenname and characters like ščťžýáíéúô (any UTF-8 characters) in CodeIgniter Tank Auth library? I was browse code but I do not know hot to allow it? And aloso I need to allow duplicate usernames…
Michal
  • 3,584
  • 9
  • 47
  • 74
1
vote
2 answers

Create ER diagram from sql file in mysql Workbench

I am using tank_auth library for authentication in Codeigniter. I want to draw ER-diagram for tank_auth sql file. When I imported sql file (reverse engineering) in mysql workbench it shows all table without any relationship between tables (users,…
ravins
  • 139
  • 3
  • 9
1
vote
2 answers

Tank Auth can't register or login once uploaded

Ok so I successfully created my first codeigniter project and used Tank Auth for the CMS authentication. All worked fine on my MAMP installation and once uploaded to my host still works. I then duplicated the files to a new project on my mamp…
Philwn
  • 330
  • 1
  • 3
  • 13
1
vote
1 answer

tank auth logouts unexpectedly

I'm using tank auth for my project but while working the session expires unexpectedly. public function __construct() { parent:: __construct(); $this->load->model("stulib"); $this->load->library("Gen"); …
AH.
  • 741
  • 1
  • 12
  • 27
1
vote
1 answer

CodeIgniter TankAuth ajax forms

I am using the lastest version of CodeIgniter and TankAuth and all functions work properly such as login, logout, email and register. Currently when a user needs to login, you are redirected to a separate page, which is, /auth/login. What I am…
Twhyler
  • 321
  • 1
  • 7
  • 15
1
vote
1 answer

forgot password tank_auth codeigniter

i use tank auth as login handler in code igniter. when i use the forget password feature, i get a link send by mail http://xx.xx.xx/en//auth/reset_password/2/01b951fd2a02efa2d64f1fe70c2a4e3b. When i click this link it always says: "Your activation…
Joel Harkes
  • 10,975
  • 3
  • 46
  • 65
1
vote
1 answer

How to change email content in tank_auth?

I use Tank_auth for authentication in my codeigniter project. when i create a new account or reset my password. standard emails were sent. how do i change the content/language for these emails? I searched my whole application folder but could not…
Kees Sonnema
  • 5,759
  • 6
  • 51
  • 106
1
vote
1 answer

How could I set up Tank Auth in Code Igniter to handle all login/registration functions at the domain root?

After a small headache, I got Tank Auth functioning flawlessly on my site. However, it does all its work via functions in the auth controller, and thus displays paths like site.com/auth/login,site.com/auth/register, etc. I'd like to be able to…
vertigoelectric
  • 1,307
  • 4
  • 17
  • 37
1
vote
1 answer

Show different content to different users PHP/CodeIgniter/Tank Auth

I am working on a project which is built with CodeIgniter and uses Tank Auth authentication library(modified version to work with user roles) . Everything is working fine but I want to show different content and/or functions to different user…
1
vote
1 answer

$this->form_validation->run() not executing

I have an issue in codeignitor form handling it does not execute $this->form_validation->run() on local server. But it does work very fine on live server. I can't find out what is the reason. Here is my controller. class Login extends…
Ejaz Karim
  • 3,676
  • 6
  • 36
  • 49
1
vote
2 answers

How limit the login in another device by the same user with tank auth library?

Is there any way to limit the access to a page with tank auth library if the same user is logged in another device?
vicenrele
  • 971
  • 3
  • 19
  • 37
1
vote
1 answer

How to prevent CodeIgniter from creating a session for every visit?

I am using sessions saved to database and TankAuth in CodeIgniter 2.1.3. The overall setup is that TankAuth checks to see if the user is logged in via $this->tank_auth->is_logged_in() This refers to libraries/Tank_auth.php function…
pepe
  • 9,799
  • 25
  • 110
  • 188
1
vote
0 answers

Logging out user at session expiry with tank auth & Codeigniter

I use tank_auth to authenticate and log users in to my application developed using Codeigniter. I noticed that when the session expires after the default period, the user remains logged in. In tank_auth's login() function, if…
user1072910
  • 263
  • 1
  • 5
  • 17
1
vote
1 answer

Codeigniter Tank Auth - removing 'index.php' from config leads to endless loop

I've installed a base install of the Tank Auth authentication library for Codeigniter from here: https://github.com/ericbae/XTA2/ Everything works well, until I remove 'index.php' from my config.php file: $config['index_page'] =…
Mazatec
  • 11,481
  • 23
  • 72
  • 108
1
vote
1 answer

Tank auth in different system(Mac and Linux) create different password Hash code

I used mac as web sever, and took codeigniter as framework. For authetication, I applied tank auth. One issue occurs: Before: I used mac as web sever, logging in is good. Now: I used linux as web server. I imported the same database, and the website…
lijinma
  • 2,914
  • 1
  • 23
  • 22