This commit is contained in:
17
src/resources/userstoreresource.py
Normal file
17
src/resources/userstoreresource.py
Normal file
@@ -0,0 +1,17 @@
|
||||
"""
|
||||
Base resource with user handling
|
||||
"""
|
||||
|
||||
__author__ = '@tormakris'
|
||||
__copyright__ = "Copyright 2020, onSpot Team"
|
||||
__module_name__ = "userstoreresource"
|
||||
__version__text__ = "1"
|
||||
|
||||
from flask_restful import Resource
|
||||
|
||||
from utils.aes_encrypt import EncryptedUserRedis
|
||||
from utils.config import ENCODED_SECRET_KEY
|
||||
|
||||
|
||||
class UserStoreResource(Resource):
|
||||
encryptor = EncryptedUserRedis(ENCODED_SECRET_KEY)
|
||||
Reference in New Issue
Block a user