active and verify users
This commit is contained in:
@@ -195,6 +195,7 @@ def activate_user(request, uidb64, token):
|
|||||||
if user is not None and utils.account_activation_token.check_token(user, token):
|
if user is not None and utils.account_activation_token.check_token(user, token):
|
||||||
# activate user
|
# activate user
|
||||||
user.is_active = True
|
user.is_active = True
|
||||||
|
user.email_verified = True
|
||||||
user.save()
|
user.save()
|
||||||
if settings.ACTIVATION_REDIRECT:
|
if settings.ACTIVATION_REDIRECT:
|
||||||
return redirect(settings.ACTIVATION_REDIRECT)
|
return redirect(settings.ACTIVATION_REDIRECT)
|
||||||
|
|||||||
@@ -250,6 +250,7 @@ def product_loader(csv_reader, user, company=None):
|
|||||||
'tags': row['tags'],
|
'tags': row['tags'],
|
||||||
'category': row['categoria'],
|
'category': row['categoria'],
|
||||||
'identifiers': row['identificadores'],
|
'identifiers': row['identificadores'],
|
||||||
|
'active': True,
|
||||||
'history': history,
|
'history': history,
|
||||||
'creator': user,
|
'creator': user,
|
||||||
# 'valid': True
|
# 'valid': True
|
||||||
|
|||||||
Reference in New Issue
Block a user