mirror of
https://github.com/flobz/psa_car_controller.git
synced 2026-08-24 02:16:14 +00:00
add rate limit to getOtpCode
This commit is contained in:
@@ -237,6 +237,8 @@ class MyPSACC:
|
||||
})
|
||||
return res
|
||||
|
||||
# 6 otp by day
|
||||
@rate_limit(6, 3600 * 24)
|
||||
def getOtpCode(self):
|
||||
otp_code = self.otp.getOtpCode()
|
||||
save_otp(self.otp)
|
||||
|
||||
Reference in New Issue
Block a user