First time the user logins, I want to show him a multi step setup.
How can I pass from login a variable to know is the first time the user login ?
An observation:
If the user passed the multi step setup, even if is still in first login, cancel the variable for multi step setup.
Django User
Model has last_login
attribute which is a DateTimeField
.
If the user never logged in, it is None
.
Or give him a cookie and test it.