Commits

Anonymous committed b6d05cf

profile

Comments (0)

Files changed (1)

vk_iframe/backends.py

             return
 
         defaults = {}
-        username = str(vk_form.vk_user_id())
+        username = "vk-{}".format(vk_form.vk_user_id())
         vk_profile = vk_form.profile_api_result()
         if vk_profile:
             defaults = dict(
         user, created = User.objects.get_or_create(username=username, defaults=defaults)
         if created:
             user = self.configure_user(vk_profile, user)
+            user.profile.soc_id = username
         return user
 
     def configure_user(self, vk_profile, user):