Small api logic changes, small order changes

This commit is contained in:
2022-09-29 00:32:18 +03:00
parent 19b246ec06
commit 6f3beeec09
8 changed files with 80 additions and 20 deletions

View File

@@ -102,6 +102,7 @@ def account_verify_phone(params):
def account_get(params):
user = _reqire_access_token(params)
return api_make_response({
"id": user.id,
"name": user.name,
"surname": user.surname,
"email": user.email,
@@ -152,7 +153,7 @@ api_methods = {
"params": [
],
"returns": "Поля пользователя (name, surname, email, phone, phone_verified)."
"returns": "Поля пользователя (id, name, surname, email, phone, phone_verified)."
},
"account.verifyPhone": {