@ -98,6 +98,12 @@ def signup(request):
)
user.save()
try:
user.vpnuser
except VPNUser.DoesNotExist:
user.vpnuser = VPNUser.objects.create(user=user)
user.vpnuser.save()
user.vpnuser.referrer = User.objects.get(id=request.session.get("referrer"))
except User.DoesNotExist: