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
10
votes
7 answers

Setting up Codeigniter HMVC with tank auth

I am having trouble getting a working Codeigniter version 2.0.3 with hmvc and tank auth(set up as a module) setup properly. I have installed CI properlly and then install HMVC with these directions…
CI_Guy
  • 1,039
  • 2
  • 22
  • 39
7
votes
5 answers

Codeigniter : Showing error as ' Unable to select the specified database: project' in Windows XP

I am using Windows XP and using EasyPHP as a server. I have integrated Codeigniter with TankAuth. But, when I try to open my assignment folder, it shows error as follows: Unable to select the specified database: project Filename: C:\Program…
V15HM4Y
  • 1,757
  • 4
  • 26
  • 40
5
votes
1 answer

How to keep session data using Codeigniter and Tank Auth

I'm using Codeigniter and Tank Auth for a e-commerce website. I'm finding that if a customer puts items into the cart (using the Codeigniter built in cart class) and then registers on the site the session is lost along with their cart (I'm presuming…
BlueFox
  • 53
  • 4
5
votes
1 answer

Codeigniter TankAuth: How to move database to new server with phpass hash portable set to FALSE

TankAuth uses PHPass for password hashing with portable mode set to FALSE by default that lets PHPass uses bcript instead since portable hashes does not store salt in its hash. But, if we want to move the database to different server, we need to set…
prajan55
  • 139
  • 1
  • 8
4
votes
2 answers

session data, display profile URLs in CodeIgniter (w/Tank Auth)

I'm developing an app in CodeIgniter and MySQL. The app include user profiles; am using Tank Auth to register and authenticate users. I've setup a couple of users and now want to view each user's profile. I need to know: 1 - How to add custom…
chowwy
  • 1,126
  • 8
  • 26
  • 45
4
votes
3 answers

Destroy Session but keep flashdata

I am using Tank Auth for user management in my CI 1.7.3 App. Everything is working fine but I'm trying to set a flash_message to be displayed when the user logs out. The problem is the $this->tank_auth->logout(); function destroys the session. I…
Brooke.
  • 3,691
  • 13
  • 49
  • 80
4
votes
1 answer

Codeigniter Routing Settings for Tank Auth

I'm using Tank-Auth for my application. And the only problem I have is activating and resetting passwords for accounts. For login, register, logout; I have no problem with this codes; $route['login'] = "/auth/login"; $route['logout'] =…
doraemon
  • 325
  • 1
  • 4
  • 16
3
votes
1 answer

Deleting cookies to allow IE to log in

I am using Tank Auth authentication library with Codeigniter 2.0.3 (one version before the current latest version) to create a log in page for my website. After a successful login, the user will be redirected to page X. However, if a user were to…
Nyxynyx
  • 61,411
  • 155
  • 482
  • 830
3
votes
4 answers

flashdata not being stored between redirects when using Tank Auth

I'm using the latest version of Codeigniter and tank_auth 1.0.9 on a site I'm building. When using set_flashdata() and flashdata() respectivly, nothing is being returned on redirect but if I set sess_use_database to FALSE in the config it…
user547333
  • 31
  • 2
3
votes
1 answer

HMVC and Views in folders (Codeigniter)

I am using Tank Auth library in Codeigniter with HMVC and the entire tank auth mvc files are in its own module called 'auth'. tank auth loads a view (domain.com/application/modules/auth/views/auth/login_form.php) found inside a folder (auth) using:…
Nyxynyx
  • 61,411
  • 155
  • 482
  • 830
3
votes
2 answers

Redirect issue in codeigniter with using tank auth social

i want to login my website with facebook and save the user data into the database, for this i am using tank auth social libray, every thing is perfectly fine but when i click to login with facebook it shows me an error like that An error…
usii
  • 1,113
  • 1
  • 10
  • 17
3
votes
1 answer

Flexi Auth or Tank Auth for codeigniter auth library

Which one is better Tank Auth or Flexi Auth. Which one should I pick. has anyone used anyone of these and can provide some feedback
kanhaic
  • 103
  • 2
  • 5
3
votes
1 answer

Codeigniter $this->lang->line(errors) without paragraph tags for tank auth error messages

I'm wondering if someone can help me with this. I am currently trying to integrate tank auth into my codeigniter site. I am slowly getting there but have run into a minor stumbling block in that when I have moved the error messages from being…
SwiftD
  • 5,769
  • 6
  • 43
  • 67
2
votes
3 answers

CodeIgniter: Passing fields to user_profiles database with Tank_auth

I'm wracking my brain on what is probably a simple issue. Relatively new to MVC and codeigniter. I'm using tank_auth for user registration, and it comes with a db table user_profiles which I've altered slightly to add things like 'firstname',…
Davezatch
  • 25
  • 2
  • 5
2
votes
1 answer

Tank Auth - getting the user info from the database

I've created a function which withdraw the user data from the database: function user() { $user_id = $this->ci->session->userdata('user_id'); if (!is_null($user = $this->ci->users->get_user_by_id($user_id, TRUE))) { return…
Cyclone
  • 14,839
  • 23
  • 82
  • 114
1
2 3
11 12