pass challenge type to rate limit reset listeners

This commit is contained in:
Jonathan Klabunde Tomer
2023-08-29 15:19:49 -07:00
committed by GitHub
parent 093f17dce2
commit 9577d552c6
4 changed files with 20 additions and 7 deletions

View File

@@ -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
}

View File

@@ -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