Create account.register function. It's currently not working because arguments is not validating
This commit is contained in:
@@ -17,6 +17,9 @@ API_ERROR_INVALID_LOGIN = (501, 'invalid login')
|
||||
API_ERROR_INVALID_PASSWORD = (502, 'invalid password')
|
||||
API_ERROR_INVALID_TOKEN = (503, 'invalid token')
|
||||
|
||||
# времненное решение, позже нужно будет заменить на конкретные ошибки
|
||||
API_ERROR_USER_REGISTER = (510, 'user register error')
|
||||
|
||||
|
||||
def make_error_object(ex: Exception):
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user