diff --git a/server/user/interface.py b/server/user/interface.py index 45f8e32..aef702c 100644 --- a/server/user/interface.py +++ b/server/user/interface.py @@ -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: