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

Codeigniter Tank_Auth_Social Facebook Login Throwing Exception

Sorry If there is a post like this question, I checked but I couldn’t find any.. I’m using tank_auth_social for Facebook login. https://github.com/sicsol/Tank-Auth-Social Also someone mentioned this problem on issues but no…
0
votes
1 answer

Is there a way to redirect to a specific page using Tank_auth in Codeigniter?

I'm wondering if there's a way to redirect to a specific page (like adminpanel_view) in Tank_auth. I looked at the Auth.php controller but could not figure out how to redirect, if it's even possible.. I tried this: (Auth.php) public function login()…
Kees Sonnema
  • 5,759
  • 6
  • 51
  • 106
0
votes
2 answers

tank Auth set_value undefined in register_form

I get the following error when click on sign up button. Fatal error: Call to undefined function set_value() in C:\wamp\www\bdcom\www\application\views\auth\register_form.php on line 19 I am new to codeigniter framework. following is the code in…
0
votes
1 answer

Tank_auth sessions: sometimes "->ci" and sometimes not

My app is PHP / CodeIgniter / TankAuth. I have in my database an account balance of sorts, and I want to display this account balance on my app's pages. So I've got in all nicely working, holding the balance in the session data. The balance only…
Maxcot
  • 1,513
  • 3
  • 23
  • 51
0
votes
0 answers

Codeigniter and Tank Auth on NGINX and PostgreSQL

Im having some difficulty with tank auth (in Codeigniter). We have it set up on top of NGINX and for the most part it seems to work fine. Ive just 'installed' the Tank_Auth library and its not working. On the register page I am deliberately entering…
Mark
  • 1
0
votes
0 answers

Issue with sending mail in Tank Auth

I'm using WAMP Server on windows 7 and trying to configure Tank Auth with code Igniter. While registration, Screen stuck on browser. I checked database that user was successfully inserted. With some debug, I was able to find that code is getting…
Kapil Sharma
  • 10,135
  • 8
  • 37
  • 66
0
votes
1 answer

Tank_Auth With Code Igniter Giving 404 on registration-success

I'm working with CodeIgniter and Tank_Auth. I got the registration to work, but it looks like it's trying to load registration-success, and I'm not sure where that is. In auth.php on line 239 I…
Sakamoto Kazuma
  • 2,573
  • 7
  • 34
  • 75
0
votes
1 answer

How to Load Tank Auth views into other views

I am Starting to work with codeigniter and am using Tank Auth as my Authentication Library. Currently trying to set up my application so the pages mysite.com/login and mysite.com/signup are custom views that load the login_form.php and…
0
votes
1 answer

Codeigniter and Tank Auth - new registration field being incorrectly added to database?

I've created a new field in the registration form: //goes on top of page along with other form vars $phone = array( 'name' => 'phone', 'id' => 'phone', 'value' => set_value('phone'), 'maxlength' =>…
styke
  • 2,116
  • 2
  • 23
  • 51
0
votes
2 answers

Handling redirects with Codeigniter and jQuery mobile?

I'm building a mobile web app with jQuery mobile and Codeigniter & TankAuth. When a user logs in or out, they are redirected from the TankAuth login/logout controller to a page of my choice. The problem is that while the ajax navigation loads the…
styke
  • 2,116
  • 2
  • 23
  • 51
0
votes
1 answer

Integrating CodeIgniter libraries (like tank auth)

I've done quite a bit of research and haven't found a satisfying answer. How should I use CodeIgniter libraries such as tank auth? I've found a handful of ways, but they all seem sort of lackluster: Do I use the controller mostly as is, adding…
Stephen Panzer
  • 289
  • 5
  • 16
0
votes
1 answer

How to show Factories for when specific User has logged in

How do I add an factory to any of my logged in users? I'm using Tank_auth and I made an account 'admin' I also made a table called 'factoryusers'. I want to add a factory to a specific user using joins. My table…
Kees Sonnema
  • 5,759
  • 6
  • 51
  • 106
0
votes
1 answer

How to show userdata from tank_auth in codeigniter?

What is the right way to get all the data from the 'users' table in my database, using Tank Auth? I tried it with just with $this->db->get('users'); But how do i get the data for the specific logged-in user? Do I have to use…
Kees Sonnema
  • 5,759
  • 6
  • 51
  • 106
0
votes
3 answers

Codeigniter user functionality

im working on a project at the moment that allows users to register and log into there own user area and add/edit/delete note snippets. Im currently working on the edit class and im wondering how can i make it so that other users cant visit the…
jackthedev
  • 417
  • 8
  • 21
0
votes
1 answer

Is it OK to call authentication methods from the view in Codeigniter?

I am using TankAuth with Codeigniter, and I was wondering if it is alright to call library specific methods from the view, as opposed to passing them from the controller? For example, $this->tank_auth->is_logged_in() Called from the view is so…
styke
  • 2,116
  • 2
  • 23
  • 51