|
|
|
@ -94,8 +94,8 @@ def confirm_registered_email(request, key): |
|
|
|
models.ConfirmEmail.objects.confirm(user) |
|
|
|
models.ConfirmEmail.objects.confirm(user) |
|
|
|
messages.add_message(request, messages.INFO, success_msg) |
|
|
|
messages.add_message(request, messages.INFO, success_msg) |
|
|
|
|
|
|
|
|
|
|
|
licenses = License.objects.filter(company=user.profile) |
|
|
|
any_licenses = License.objects.filter(company=user.profile).exists() |
|
|
|
if not licenses: |
|
|
|
if not any_licenses: |
|
|
|
license = License.objects.create_test_period_license(company=user.profile) |
|
|
|
license = License.objects.create_test_period_license(company=user.profile) |
|
|
|
user.profile.confirmed = True |
|
|
|
user.profile.confirmed = True |
|
|
|
user.profile.active = True |
|
|
|
user.profile.active = True |
|
|
|
|