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: Creating New Classes to interact with databse

Ok, so i am using codeigniter and tankauth. I want to create a function where a user can ask a question and the question is stored in the databse. Seems simple enough although I seem to be running into issues once i start creating new classes for…
ageoff
  • 2,798
  • 2
  • 24
  • 39
0
votes
1 answer

Callback function error

Ok, So i am creating a simple callback function to check to see if the user has inserted a banned word. Here i what i have so far: (This is using codeigniter and tankauth) $this->form_validation->set_rules('firstname', 'First Name',…
ageoff
  • 2,798
  • 2
  • 24
  • 39
0
votes
1 answer

CodeIgniter: TankAuth, Check user date of birth as a callback

Ok, So I ave implemented a Date of Birth into the user registration. What I want to do now is take that date of birth and check to see if they are above a certain age (13) before they register. They way I did DOB is kinda weird, but it works. I have…
ageoff
  • 2,798
  • 2
  • 24
  • 39
0
votes
1 answer

CodeIgniter: Tank Auth, Adding Date of Birth Issues

Ok, So I have added a Date of Birth section for the registration process. I have done it in a weird way probably but it is a logical way to do it in my mind so as long as it works I am fine with it. I have created 3 dob fields (dob1, dob2, dob3 -…
ageoff
  • 2,798
  • 2
  • 24
  • 39
0
votes
1 answer

PHP: Tank Auth, require a certain email address to login

So I have just setup tank auth, I have not changed anything yet so everything should be default. It works perfectly fine. However I want to require for a certain domain for emails to be able to login. For now I will say gmail. So how can i make it…
ageoff
  • 2,798
  • 2
  • 24
  • 39
0
votes
1 answer

Loading login_form View with Tank Auth Giving PHP Error

I'm trying to add the login_form from Tank_auth view into my HTML template. When I do so, it returns a few errors regarding missing variables, and I'm not sure what I'm doing wrong. My controller: public function index() { $topbar['account'] =…
Ricky Mason
  • 1,838
  • 6
  • 31
  • 60
0
votes
2 answers

Codeigniter tank auth check user entered password

I'm using Tank Auth for my website. I've searched for a function that would check if user has entered a valid password, when he tries to update his profile. I don't understand how to hash password from user input that would match one in…
user1587985
  • 665
  • 1
  • 6
  • 13
0
votes
2 answers

Using CodeIgniter Tank-Auth as a package?

Is it possible to get Tank-Auth working as a package in CodeIgniter? I installed database schema into my MySQL database and copied all the folders of tank_auth in my app "third_party" folder "[CI]\application\third_party\tank_auth". The Screenshot…
Simmoniz
  • 1,080
  • 15
  • 27
0
votes
1 answer

Creating username from email with Codeigniter + Tank Auth

I use Codeigniter framework + Tank_Auth registiration library. They work great but I just need to change register form a bit. I want to generate username from email address instead of getting it from registeration form. I added a simple function to…
0
votes
1 answer

Codeigniter admin user/customer auth separation

I'm currently using Tank Auth on my project. I'd like to have separate logins for my admin area and main site. I'm using two different tables one for admin users and one for normal users. At the moment if you login to either section and then go to…
flyersun
  • 917
  • 3
  • 15
  • 35
0
votes
1 answer

Codeigniter Tank Auth add folder upon registration

I have downloaded Tank Auth and am trying to create a folder when the user registers. I have edited the create_user() function in the users.php model like so but the folder does not get created. I am on Windows 7 so I thought maybe it was a…
james
  • 2,595
  • 9
  • 43
  • 70
0
votes
1 answer

insert user profile tank auth

I've seen question from this CodeIgniter: Passing fields to user_profiles database with Tank_auth and my problem same as Davezatch have, but mine like this on auth controller: ... if ($this->form_validation->run()) { …
ranggadablues
  • 249
  • 1
  • 4
  • 14
0
votes
1 answer

in codeigniter where is ci_sessions updated

application uses codeigniter and tank_auth with it. I need to add some more data to add ci_sessions table. I could not find where a data is inserted to ci_sessions. Where it is, in which folder or controller or library?
guness
  • 6,336
  • 7
  • 59
  • 88
-1
votes
1 answer

How to ensure strong password in tank_auth?

I Completed registration in Tank_auth for my Project.But I need strong password ensure facility.Will you please help me.
Anitha
  • 1
-1
votes
1 answer

CodeIgniter Tank_auth. Undefined property: Auth::$db

Fresh installation of tank_auth library over Codeigniter 2.1.3. When I try to access 'http://localhost/es/auth/register' gets following PHP error: A PHP Error was encountered Severity: Notice Message: Undefined property: Auth::$db Filename:…
1 2 3
11
12