Create account.register function. It's currently not working because arguments is not validating

This commit is contained in:
2022-09-17 22:03:31 +03:00
parent 58a19c7a41
commit 22da68b953
3 changed files with 25 additions and 2 deletions

View File

@@ -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: