mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-10-01 20:32:52 +00:00
fix(tokens-repo): return device key instead of NewDeviceKey class
This commit is contained in:
parent
13e84e2697
commit
fda5d315a9
|
@ -72,7 +72,7 @@ class RedisTokensRepository(AbstractTokensRepository):
|
||||||
"""Creates and returns the new device key"""
|
"""Creates and returns the new device key"""
|
||||||
new_device_key = NewDeviceKey.generate()
|
new_device_key = NewDeviceKey.generate()
|
||||||
self._store_model_as_hash(NEW_DEVICE_KEY_REDIS_KEY, new_device_key)
|
self._store_model_as_hash(NEW_DEVICE_KEY_REDIS_KEY, new_device_key)
|
||||||
return NewDeviceKey
|
return new_device_key
|
||||||
|
|
||||||
def delete_new_device_key(self) -> None:
|
def delete_new_device_key(self) -> None:
|
||||||
"""Delete the new device key"""
|
"""Delete the new device key"""
|
||||||
|
|
Loading…
Reference in a new issue