Check If The User Has Logged In For The First Time Without Using Django-allauth
I have found a lot of questions here asking about the same topic but they all have one thing in common, i.e. Django-allauth. But my project uses djoser. I want users to add some ad
Solution 1:
You can simply add a new BooleanField
(say, named is_previously_logged_in
) with default=False
to your profile model and check if it is still False
at every login. You can then set it to True
so that you don't show the profile information to the user twice.
Post a Comment for "Check If The User Has Logged In For The First Time Without Using Django-allauth"