mirror of
https://github.com/signalapp/Signal-Server
synced 2026-04-20 12:08:05 +01:00
pass challenge type to rate limit reset listeners
This commit is contained in:
committed by
GitHub
parent
093f17dce2
commit
9577d552c6
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
* Copyright 2013-2021 Signal Messenger, LLC
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
package org.whispersystems.textsecuregcm.spam;
|
||||
|
||||
public enum ChallengeType {
|
||||
PUSH,
|
||||
CAPTCHA
|
||||
}
|
||||
@@ -11,7 +11,7 @@ import java.io.IOException;
|
||||
|
||||
public interface RateLimitChallengeListener {
|
||||
|
||||
void handleRateLimitChallengeAnswered(Account account);
|
||||
void handleRateLimitChallengeAnswered(Account account, ChallengeType type);
|
||||
|
||||
/**
|
||||
* Configures this rate limit challenge listener. This method will be called before the service begins processing any
|
||||
|
||||
Reference in New Issue
Block a user