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):
|
||||
# activate user
|
||||
user.is_active = True
|
||||
user.email_verified = True
|
||||
user.save()
|
||||
if settings.ACTIVATION_REDIRECT:
|
||||
return redirect(settings.ACTIVATION_REDIRECT)
|
||||
|
||||
@@ -250,6 +250,7 @@ def product_loader(csv_reader, user, company=None):
|
||||
'tags': row['tags'],
|
||||
'category': row['categoria'],
|
||||
'identifiers': row['identificadores'],
|
||||
'active': True,
|
||||
'history': history,
|
||||
'creator': user,
|
||||
# 'valid': True
|
||||
|
||||
Reference in New Issue
Block a user