Rename pubkey to loginPubkey because we'll soon have another pubkey.

This breaks sharing because we no longer have a normal pubkey.
This will be fixed in the next commit.
This commit is contained in:
Tom Hacohen
2020-05-26 13:23:45 +03:00
parent 2412c295de
commit 863c405802
4 changed files with 22 additions and 6 deletions

View File

@@ -174,7 +174,7 @@ class CollectionInvitation(models.Model):
class UserInfo(models.Model):
owner = models.OneToOneField(settings.AUTH_USER_MODEL, on_delete=models.CASCADE, primary_key=True)
version = models.PositiveSmallIntegerField(default=1)
pubkey = models.BinaryField(editable=True, blank=False, null=False)
loginPubkey = models.BinaryField(editable=True, blank=False, null=False)
salt = models.BinaryField(editable=True, blank=False, null=False)
def __str__(self):