Code Monkey home page Code Monkey logo

Comments (9)

humrochagf avatar humrochagf commented on July 2, 2024 2

I am currently working in a fix that pass forward all get parameters to address this issue and others like GA GET tracking parameters

from django-allauth-2fa.

JelteF avatar JelteF commented on July 2, 2024 1

This should be fixed now as #44 is merged.

from django-allauth-2fa.

ssimono avatar ssimono commented on July 2, 2024 1

Done: #51

Thanks

from django-allauth-2fa.

humrochagf avatar humrochagf commented on July 2, 2024

I was running the code tests and stumbled in 7 errors. Inspecting the travis build history i noticed that there are 7 tests being skipped, there is a special reason for that?

from django-allauth-2fa.

clokep avatar clokep commented on July 2, 2024

@humrochagf Some tests only run under Django 1.10.

from django-allauth-2fa.

humrochagf avatar humrochagf commented on July 2, 2024

this PR #44 should solve this issue

from django-allauth-2fa.

ssimono avatar ssimono commented on July 2, 2024

Hello guys sorry to awake this issue, but I am still experiencing the problem.

The PR #44 seems to make sure that when I visit /two-factor-authenticate?next=/my/path then the query parameter is passed correctly.

But I think there is still a problem before: when submitting the first user/password form, the next parameter might be passed with a POST parameter, and when this happens the next path is lost. And the default template for allauth actually passes the next as a POST parameter, and not as a url query.

See attached screenshot, I end up in accounts/profile instead of my desired path

screenshot from 2017-06-27 16-33-30

I am running Django 1.11, allauth 0.32 and allauth-2fa 0.4.4

from django-allauth-2fa.

ssimono avatar ssimono commented on July 2, 2024

FYI I went around this problem by overriding the default allauth login template with something like this

<form class="login" method="POST" action="{% url 'account_login' %}{% if redirect_field_value %}?{{ redirect_field_name }}={{ redirect_field_value }}{% endif %}">

so the form's action attribute takes next parameter into account. But maybe allauth-2fa could benefit from handling the next parameter with POST as well

from django-allauth-2fa.

clokep avatar clokep commented on July 2, 2024

@ssimono Can you please file a new issue? It's easier to track instead of commenting on old issues. Thanks.

from django-allauth-2fa.

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.