Code Monkey home page Code Monkey logo

Comments (6)

pennersr avatar pennersr commented on June 11, 2024 2

I made a little PoC for a feature like this, I've pushed that here:

https://github.com/pennersr/django-allauth/tree/feat-otp-login

It's functional but definitely not finished. Would appreciate it if you could give it a test spin to see if this matches your use case.

MFA_EMAIL_OTP = True.

from django-allauth.

pennersr avatar pennersr commented on June 11, 2024 1

FWIW -- it's reusing the regular mfa flow:

image

from django-allauth.

josylad avatar josylad commented on June 11, 2024 1

Hi @pennersr
I hope this feature will make it to the next update. 😉️

from django-allauth.

josylad avatar josylad commented on June 11, 2024

Thanks for this. below is my use case and some of my own opinions.

Use case: I want to send OTP on user login, redirect the user to the OTP confirmation page, verify the OTP and then send them to their dashboard (or any page I desire).

Opinions:

  • Many people are not familiar with the workings of authenticator apps and some people do not want to install yet another app, so the idea of an Email OTP system comes into play. Email 2FA is very popular, especially in my region.
  • I believe it should be a global setting. We can activate it globally and require users to provide the OTP code from their email before they can log in.
  • Yes, it will require ACCOUNT_EMAIL_REQUIRED to be true.
  • The global setting could be something like EMAIL_OTP_VERIFICATION = True.

from django-allauth.

josylad avatar josylad commented on June 11, 2024

I made a little PoC for a feature like this, I've pushed that here:

https://github.com/pennersr/django-allauth/tree/feat-otp-login

It's functional but definitely not finished. Would appreciate it if you could give it a test spin to see if this matches your use case.

MFA_EMAIL_OTP = True.

Thank you for this. I will test it and share feedback with you.

from django-allauth.

josylad avatar josylad commented on June 11, 2024

Hi,
I just tested it and this is exactly what I need!

image

image

I got the OTP, entered it and the user was sent to the dashboard!

Thank you.

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.