Comments (9)
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.
This should be fixed now as #44 is merged.
from django-allauth-2fa.
Done: #51
Thanks
from django-allauth-2fa.
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.
@humrochagf Some tests only run under Django 1.10.
from django-allauth-2fa.
this PR #44 should solve this issue
from django-allauth-2fa.
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
I am running Django 1.11, allauth 0.32 and allauth-2fa 0.4.4
from django-allauth-2fa.
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.
@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)
- Plan for a 1.0 release HOT 8
- Rename main branch to 'main' HOT 2
- Redirect-to-next breaks with certain view classes
- OTP login breaks with subclassed OTPAdapter
- TypeError at /account/two-factor-authenticate - exists again in 0.9 HOT 2
- Join jazzband? HOT 11
- When usinging allauth with email login the login screen does not navigate to totp entry HOT 1
- can someone point how to enable 2FA using email for all users? HOT 1
- Configurable redirect URLs HOT 1
- Not compatible with function-based login view HOT 4
- Disabling 2FA does not work with a backup token HOT 2
- Success social login directing to failed social login page HOT 2
- ALLAUTH_2FA_SETUP_SUCCESS_URL and ALLAUTH_2FA_REMOVE_SUCCESS_URL not used in views
- RestFul api use HOT 1
- Make it possible to disable 2fa without a token.
- Templates are not included in 0.11.0 wheel distribution HOT 1
- Missing dependabot config HOT 3
- When using with the latest version of django-allauth, 2FAย is bypassed HOT 5
- Consider where django-allauth-2fa stands now django-allauth has MFA built-in HOT 4
- user_logged_in signal from Django is executed twice
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-allauth-2fa.