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