Comments (3)
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.
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.
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)
- SOCIALACCOUNT_PROVIDER nextcloud ignores settings HOT 8
- linkedin_oauth2 HOT 1
- IntegrityError on email change if user email field is unique HOT 3
- Lichess.org Provider Support HOT 1
- Github verified email does not seem to work HOT 2
- Option to allow one-time password login for old users when using SOCIALACCOUNT_ONLY HOT 1
- how to add support for SAML federations HOT 7
- headless api documentation HOT 2
- Microsoft Login (Social Account) HOT 1
- 0.62.0: Contains site-packages/tests directory HOT 3
- Setting SOCIALACCOUNT_ONLY = True results in template error when trying to perform a social login, "Reverse for 'account_signup' not found. 'account_signup' is not a valid view function or pattern name". HOT 4
- Still receiving save() prohited to prevent data loss due to unsaved related objec HOT 2
- Telegram views CallbackView 'bool' object has no attribute 'pop' HOT 2
- typo in comments 'cocunt' plugin HOT 1
- sociallogin.is_existing fails if existing user associated in adapter.new_user HOT 2
- Better template tags and files HOT 3
- Deprecated signature algorithm SAML HOT 2
- Account provider not listed/visible HOT 2
- Provider is not showing up in Django admin and getting ImproperlyConfigured error after setting up django-allauth HOT 4
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.