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

How can i show my username and email adress on page? tank_auth codeigniter

I have a codeigniter application. Today i added the tank_auth plugin. it works great but there is one thing i don't know. how do i print the username on the page? In the documentation of tank_auth they say get_username: Get username for…
Kees Sonnema
  • 5,759
  • 6
  • 51
  • 106
0
votes
2 answers

When I enable the Codeigniter cache, the tank auth is disabled. Why?

If I activate the Codeigniter cache in the construct function of start controller (for example). So: $this->output->cache(20); //20 minutes If I do login in the principal page (built with Tank auth library) the complete web application is shown, if…
vicenrele
  • 971
  • 3
  • 19
  • 37
0
votes
1 answer

Codeigniter - Search profile using username entered in URL

I am using Codeigniter and Tank Auth and I am using Ubuntu OS. When I access my project using my IP, it comes something like: http://192.168.1.10/project/auth/login I have to implement a functionality of searching a profile using URL. Suppose if I…
V15HM4Y
  • 1,757
  • 4
  • 26
  • 40
0
votes
1 answer

Creating an admin user / area using Tank auth and Codeigniter

I am building a mini social network for my sports club and want to create a 'admin' section that admin's can manage user accounts from, such as ban user, delete user etc. I am using tank auth to handle the authentication of the normal site users but…
user1157393
0
votes
0 answers

Codeigniter login issue.

I have codeigniter powered application and whenever i tried to log in on local server it doesn't let me in without any error message. But when I login in live server it works fine. #What might be main causes of this issue. #My config file and…
Ejaz Karim
  • 3,676
  • 6
  • 36
  • 49
0
votes
1 answer

Tank_auth set_value() undefined on custom login page

On the default tank_auth login view, there are no errors whatsoever. However, I wanted to style it to match the rest of the site, so I took the code and pasted it into a custom login page (thus replacing the form element, but leaving everything…
Fibericon
  • 5,684
  • 12
  • 37
  • 64
0
votes
1 answer

I'm getting undefined variable instead of displaying the error message

I created a callback function for email validation in codeigniter using tank auth. Here are my codes: $this->form_validation->set_rules('email', 'Email', 'trim|required|xss_clean|valid_email|callback_is_email_domain[gmail.com,yahoo.com]'); function…
chums
  • 3
  • 2
0
votes
1 answer

code igniter auth(Tank Auth) logs me out for no reason (i.e. overloaded may be)

i have a controller and a view indicated as below which works perfect for some time, but after some requests are made to the server(i.e. keeps reloading every one second) it will fail on this line if (!$this->tank_auth->is_logged_in()) for no…
jspeshu
  • 1,211
  • 3
  • 12
  • 20
0
votes
0 answers

TankAuth Session expire feature invalidating my Delphi Desktop Application

I have a desktop app (developed with Delphi XE2) that login & interacts with a PHP 5 web application (I use CodeIgniter 2.1 along with TankAuth - both latest version) It seems that TankAuth has a session expire feature (that kicks in every 5…
TheDude
  • 3,045
  • 4
  • 46
  • 95
0
votes
1 answer

Tank Auth: Unable to select the specified database : xxxx

I am trying to use Tank Auth. I successfully created the tank tables in my database but when I load the page, it gives me this error: Unable to select the specified database : testdb I tried to google the solution but seems like it is the WAMP…
Kintarō
  • 2,947
  • 10
  • 48
  • 75
0
votes
1 answer

Redirect after logout Tank Auth CodeIgniter

I've googled, and googled and googled, and I can't find the answer to this question anywhere. I'm using Tank Auth with CodeIgniter. I have no problems loading up the views for login, register etc.. My issue is, when I make a link for logging out, it…
Dan
  • 97
  • 10
0
votes
1 answer

Security library codeigniter req by Tank_Auth

The Tank Auth controller tries to load a 'security library'. $this->load->library('security'); I cannot find the library in any lib folder inside my CodeIgniter FW. Its not in the package of Tank_Auth. So where could it be? Did i miss something?…
user1869615
0
votes
1 answer

Using email address as username in Tank Auth

I am working on a project with Tank Auth and I would like to use the email addresses of my users as their username to login on the application. This is the first time I work with a extensive library like this and I'm puzzled. On the register view I…
Glenn
  • 635
  • 2
  • 11
  • 23
0
votes
1 answer

how to add access level to tank_auth

i m using ci 2 and i saw in previous post here that u recommend tank_auth as best library for user auth. i downloaded it but couldnt figure out how to setup access level in tank_auth. should i manually mod this ? i was thinking of adding group_id…
Zalaboza
  • 8,899
  • 16
  • 77
  • 142
0
votes
1 answer

Constraining tank_auth views to a div on a web age

Hi Tank_auth & web Gurus! I have tank_auth working with my CodeIgniter application. Currently, the login/register views of tank_auth take over the entire screen. On my website, I would like the login/register views to occupy a div that I define. For…
user1072910
  • 263
  • 1
  • 5
  • 17