Skip to content

Commit

Permalink
fix brightid connect url
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohamad Bastin committed Jan 9, 2024
1 parent 3b22b70 commit 13f9c6e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions authentication/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ def __str__(self):


class BaseThirdPartyConnection(models.Model):
title = "BaseThirdPartyConnection"
user_profile = models.ForeignKey(
UserProfile, on_delete=models.PROTECT, related_name="%(class)s"
)
Expand All @@ -188,6 +189,7 @@ def get_connection(cls, user_profile):


class BrightIDConnection(BaseThirdPartyConnection):
title = "BrightID"
context_id = models.CharField(max_length=512, unique=True)

driver = BrightIDConnectionDriver()
Expand Down
2 changes: 1 addition & 1 deletion authentication/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def get_third_party_connection_serializer(connection):

def thirdparty_connection_serializer(connection_list):
return [
get_third_party_connection_serializer(connection).data
{connection.title: get_third_party_connection_serializer(connection).data}
for connection in connection_list
]

Expand Down

0 comments on commit 13f9c6e

Please sign in to comment.