SHA256
ESP32 wallet RPC, browser wallet provider, and side panel
This commit is contained in:
+2
-1
@@ -74,7 +74,8 @@ public class Net_StartEspPairing_Handler implements JsonMessageHandler {
|
||||
|
||||
long now = System.currentTimeMillis();
|
||||
EspPairingRequestsDAO.getInstance().expirePending(now);
|
||||
if (settings.getBlockedUntilMs() > now) {
|
||||
long blockedUntilMs = settings == null ? 0L : settings.getBlockedUntilMs();
|
||||
if (blockedUntilMs > now) {
|
||||
return NetExceptionResponseFactory.error(req, EspPairingSupport.STATUS_PAIRING_RATE_LIMIT, "PAIRING_RATE_LIMITED", "Временная блокировка pairing по числу неудачных попыток");
|
||||
}
|
||||
int recentAttempts = EspPairingRequestsDAO.getInstance().countRecentByLoginAndStatuses(
|
||||
|
||||
Reference in New Issue
Block a user