Code Monkey home page Code Monkey logo

Comments (6)

pennersr avatar pennersr commented on July 1, 2024

MFA attempts are rate limitted, though you will get a clear "too many login attempts" error, not "incorrect code".

from django-allauth.

StoneMasons4106 avatar StoneMasons4106 commented on July 1, 2024

Ok, I've narrowed the issue down to when allauth/layouts/base.html is changed to extending my base.html, the code isn't read properly in the activation process. Everything else seems to work.

I've included my base.html, is there anything that you can see that would interfere with mfa? I've confirmed that the form being used is exactly the same as the default mfa activation form.

I even confirmed that my changed, styled mfa activation form isn't the issue, as I used it and replaced my base.html with the default allauth/layouts/base.html and it worked perfectly.

Base.html:
https://codefile.io/f/g72BVcHUNI

from django-allauth.

StoneMasons4106 avatar StoneMasons4106 commented on July 1, 2024

Update:

It seems like if I remove the blank favicons links near the top of the page, the authenticator app works perfectly... I'm just at a complete loss as to why

from django-allauth.

pennersr avatar pennersr commented on July 1, 2024

There is a feature that automatically purges the session when you navigate away from the MFA signin page. Perhaps that is somehow interfering? So, you have the MFA signin page in front of you and you then navigate to any other page, the MFA session is gone. Now, in earlier versions there was an issue where this even happened if a favicon.ico was requested, but that has been fixed. What version are you on?

from django-allauth.

StoneMasons4106 avatar StoneMasons4106 commented on July 1, 2024

I'm on version 0.58.2

from django-allauth.

pennersr avatar pennersr commented on July 1, 2024

Having a blank favicon is incorrect. It causes your browser to make a regular request with a text/html response, which the middleware interprets as navigating away from the MFA page.

from django-allauth.

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.