Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
taoky committed Sep 2, 2023
1 parent 3085b3a commit d9ac9f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/user/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def create(cls, context, group, user=None, **kwargs):
user = get_user_model().objects.create_user(str(uuid4()))
self = cls(context, models.User(user=user.pk))
pk = str(user.pk)
sig = base64.b64encode(OpenSSL.crypto.sign(
sig = base64.b64encode(crypto.sign(
self._private_key, pk.encode(), 'sha256')).decode()
self._obj.token = pk + ':' + sig
try:
Expand Down

0 comments on commit d9ac9f1

Please sign in to comment.