Giter VIP home page Giter VIP logo

Comments (12)

emreakay avatar emreakay commented on May 19, 2024

it is not possible to ban after login failed but you can limit the login attempts in one minute.

from /config/Aauth.php file you can change the lines 54-59

// it limits login attempts
'dos_protection' => true,

// login attempts time interval
// default 10 times in one minute
'try' => 10,

from codeigniter-aauth.

emreakay avatar emreakay commented on May 19, 2024

if you want this feture i can maybe add it to version 2

from codeigniter-aauth.

satyajit98300 avatar satyajit98300 commented on May 19, 2024

It would be very good , if u can add this feture

from codeigniter-aauth.

satyajit98300 avatar satyajit98300 commented on May 19, 2024

If i limit login, what will it show?? also please tell me , for how much time it will limit the user to be logged in ?

from codeigniter-aauth.

emreakay avatar emreakay commented on May 19, 2024

it is up to you.

limit time algorihm works by this formula.

30 sec * try

from codeigniter-aauth.

emreakay avatar emreakay commented on May 19, 2024

ok. i will add ban feature soon.

from codeigniter-aauth.

satyajit98300 avatar satyajit98300 commented on May 19, 2024

But its still showing error. login attempt is not working will, also i have tried with $this->aauth->_reset_login_attempts(1);
but no help. :(

from codeigniter-aauth.

satyajit98300 avatar satyajit98300 commented on May 19, 2024

get_login_attempts is missing. not working

Also in line number 527 $data['last_login_attempts'] = null; need to be $data['last_login_attempt'] = null;

from codeigniter-aauth.

satyajit98300 avatar satyajit98300 commented on May 19, 2024

A PHP Error was encountered

Severity: Notice

Message: Undefined property: Aauth::$create_user

Filename: controllers/login.php

Line Number: 49

Fatal error: Call to a member function get_errors() on a non-object in C:\EasyPHP-DevServe\data\localweb\service\application\controllers\login.php on line 49

from codeigniter-aauth.

satyajit98300 avatar satyajit98300 commented on May 19, 2024

Need ur help pleaseeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee

from codeigniter-aauth.

emreakay avatar emreakay commented on May 19, 2024

Bro. I'm now out of my home. I will try to find a solution when I get back to home.

from codeigniter-aauth.

jacobtomlinson avatar jacobtomlinson commented on May 19, 2024

I'll try and have a look if I get time too.

But I would suggest that instead of 30 sec * try it should be 30 sec ** try.
e.g to the power of instead of times. That way the more times you try the longer and longer it takes. That's the best way to defeat a brute force attack. Perhaps not straight away though so maybe it would be better to be 30 sec ** (try - 5) but if try - 5 is less then 1 then just count it as 1.

So for example:
1 try = 30 seconds
2 tries = 30 seconds
3 tries = 30 seconds
4 tries = 30 seconds
5 tries = 30 seconds
6 tries = 15 minutes
7 tries = 7.5 hours
8 tries = 9.375 days

from codeigniter-aauth.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.