|
|
@ -862,11 +862,12 @@ def refresh_token(): |
|
|
|
rate_res = custom_rate_limit(limit=5, seconds=15) |
|
|
|
if rate_res != 1: |
|
|
|
return rate_res |
|
|
|
|
|
|
|
frappe.set_user("Administrator") |
|
|
|
req = frappe.request.data |
|
|
|
req = json.loads(req) |
|
|
|
refresh_token= req['refresh_token'] |
|
|
|
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) |
|
|
|