Browse Source

Login error log fix

master
venkataakhil 1 year ago
parent
commit
4c0832b550
  1. 9
      smart_service/apis/app_user_login.py

9
smart_service/apis/app_user_login.py

@ -857,10 +857,6 @@ def generate_refresh_token():
@frappe.whitelist(allow_guest=1, methods=['POST'])
def refresh_token():
req = frappe.request.data
req = json.loads(req)
refresh_token= req['refresh_token']
device_id= req['DeviceID']
""" For Refresh API """
rate_res = custom_rate_limit(limit=5, seconds=15)
@ -868,6 +864,11 @@ def refresh_token():
return rate_res
if refresh_token:
frappe.set_user("Administrator")
req = frappe.request.data
req = json.loads(req)
refresh_token= req['refresh_token']
device_id= req['DeviceID']
# frappe.log_error('')
# req = json.loads(frappe.request.data)
# ref_token = req['refresh_token']
ref_token = refresh_token

Loading…
Cancel
Save