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

Admin access with tank_auth in Codeigniter

I'm using Tank Auth and my project will support two access type: "normal user" and "admin". I looked at the tank auth database and there is a "isadmin" field, so I believe that it's possible redirect to /admin or /user when I log in to my…
Osny Netto
  • 562
  • 3
  • 9
  • 28
1
vote
2 answers

How do I change the login URL using Tank auth?

I have been looking around the Tank auth code to see how things are done, but it seems a little confusing to find out how to change the path of the default login. I wanted to change it to groups/login or users/sign_in, but that wasn't an easy task.…
Digital site
  • 4,431
  • 12
  • 48
  • 72
1
vote
4 answers

Codeigniter: Replace captcha in Tank_auth

Has anyone ever tried to replace the default captcha in Tank_Auth with their own customized captcha? The default captcha for Tank_Auth is just too difficult for most users. I want to replace it with Cool Captcha and would like to know if replacing…
enchance
  • 29,075
  • 35
  • 87
  • 127
1
vote
1 answer

Using set_value + another value in codeigniter

I've got a login form and I'm using Tank Auth for form validation, etc. For the form, I'm not using labels; instead I am populating the value field to tell users what to input (e.g., Email Address in the "email" field). But Tank Auth presets the…
chowwy
  • 1,126
  • 8
  • 26
  • 45
1
vote
1 answer

login form does not appear

I am new to CodeIgniter and I use Tank Auth for my login form. When I try to put Tank Auth in my template, the login form doesn’t appear at all. I didn’t change anything but the controller. Here is my controller code: public function __construct(){ …
ranggadablues
  • 249
  • 1
  • 4
  • 14
1
vote
3 answers

Tank Auth login successful on local, fails on server

I am using Tank Auth for Codeigniter to facilitate user registration and login. Problem: I am able to login perfectly using tank auth on my local Windows development server (XAMPP). However when I copied the entire database and entire directory…
Nyxynyx
  • 61,411
  • 155
  • 482
  • 830
1
vote
2 answers

Customizing Tank_Auth table field names for CodeIgniter

I am a beginner learning codeigniter to build a website. For authentication feature, i use tank_auth library and it works fine if I dont alter the tank_auth table field names. Then, to combine the tank_auth's 'users' table with my existing…
prajan55
  • 139
  • 1
  • 8
1
vote
3 answers

How do I set a return URL during login on Codeigniter / Tank_Auth?

The issue here is that when my user logs into my app, they always are redirected to the default controller. I would like the user to be redirected to the page they were on before logging in. So for example, if the user is reading forum post #12…
pepe
  • 9,799
  • 25
  • 110
  • 188
1
vote
4 answers

Tank Auth forgot password does't work

I use CodeIgniter + Tank Auth. Only the code http://localhost/XXXXXXXX/auth/forgot_password doesn't work. The result always is: "Your activation key is incorrect or expired. Please check your email again and follow the instructions." The…
vili
  • 317
  • 3
  • 6
  • 14
1
vote
1 answer

How to remove 'confirm form resubmission' on tank auth

Hi I have been using tank auth for CI and I think it's awesome, I was just wondering if there was a way to change it so when a user refreshes the login page (after login errors), the 'confirm form resubmission' popup does not show up. I have been…
1
vote
2 answers

Codeigniter Tank auth installation

I'm having some problems with Tank Auth. Although i followed the instructions from here when i try to connect in the login_form i get a redirect in http://example.com/auth/login. I assume i can change "example.com" with my domain but i can't find…
Argiropoulos Stavros
  • 9,436
  • 11
  • 61
  • 79
1
vote
0 answers

Settings Codeigniter 3 HMVC with tank auth

I'm trying to install Auth Tank in CodeIgniter in HMVC but without success. I did the following: I created the tables in the database; I put the folders (config, controllers, helpers, language, libraries, models, views) within modules/auth/; In…
1
vote
1 answer

Codeigniter Botdetect/Tank-Auth Captcha 404 Not found on Nginx

I want to use Tank auth in my CodeIgniter project, but there is need to start with basic installation of Botdetect captcha in CodeIgniter. I have followed the Quickstart Installation guide on this link. The view upon which I am trying to run this…
amachree tamunoemi
  • 817
  • 2
  • 16
  • 33
1
vote
1 answer

Sudden increase in database connections when tank auth is used

Im having an amazon ec2 instance which has a database connection of maximum 35 connections.I have been running a web application,which was working fine.I was testing codeignitor with tank auth to see how it works.But it made my database inaccessible…
Piya
  • 1,134
  • 4
  • 22
  • 42
1
vote
1 answer

Destroying a session with Codeigniter and Tank_Auth library

I am using Codeigniter for an application and added Tank_Auth as Authentication system. Locally (XAMPP) things work perfectly (login, logout). On a server though I noticed a bug, when I login , I go through, when I logout, I am redirected to the…
Rad
  • 989
  • 3
  • 14
  • 31
1 2
3
11 12