Coder Social home page Coder Social logo

Comments (3)

pennersr avatar pennersr commented on August 17, 2024

You could listen to the email confirmed signal, and set is_active = False there. Though, be sure to only set that in case the account is a new one -- it might be that an already approved user verifies a secondary email address, in that case you don't want to toggle is_active.

from django-allauth.

vdejager avatar vdejager commented on August 17, 2024

Clear, but is there any reason why the email confirmation is not send if the user 'is_active' is False? upon creation?

from django-allauth.

pennersr avatar pennersr commented on August 17, 2024

The is_active field is not meant for what you are using it for, at the very least its semantics are fuzzy. I've seen people use it for the purposes you describe, but also for blocking bad behaving users. Django documents it as:

https://docs.djangoproject.com/en/5.0/ref/contrib/auth/: "We recommend that you set this flag to False instead of deleting accounts. That way, if your applications have any foreign keys to users, the foreign keys won’t break."

allauth uses the above semantics -- a deleted account is not supposed to perform any actions.

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.