Add my-orders page in account
This commit is contained in:
@@ -3,7 +3,7 @@ from .models import *
|
||||
from django.core.exceptions import *
|
||||
|
||||
|
||||
def _reqire_access_token(params):
|
||||
def _require_access_token(params):
|
||||
token = api_get_param_str(params, "access_token")
|
||||
return UserToken.get_user_by_token(token)
|
||||
|
||||
@@ -66,7 +66,7 @@ def account_register(params):
|
||||
|
||||
|
||||
def account_verify_phone(params):
|
||||
user = _reqire_access_token(params)
|
||||
user = _require_access_token(params)
|
||||
|
||||
if user.is_phone_verified:
|
||||
raise Exception(API_ERROR_VALIDATION_CURRENTLY_VERIFIED)
|
||||
@@ -98,7 +98,7 @@ def account_verify_phone(params):
|
||||
|
||||
|
||||
def account_get(params):
|
||||
user = _reqire_access_token(params)
|
||||
user = _require_access_token(params)
|
||||
return api_make_response({
|
||||
"id": user.id,
|
||||
"name": user.name,
|
||||
|
Reference in New Issue
Block a user