Update abusive message filter and filter account creates
This commit is contained in:
parent
2e497b5834
commit
07ed765250
|
@ -1 +1 @@
|
|||
Subproject commit 971a81f9351e1533635ad1028f4ee21b45bbe1a5
|
||||
Subproject commit 2484d2fd53444b03baae6773353571532dc7f408
|
|
@ -50,6 +50,7 @@ import javax.ws.rs.core.Response.Status;
|
|||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.whispersystems.textsecuregcm.abuse.FilterAbusiveMessages;
|
||||
import org.whispersystems.textsecuregcm.auth.AuthenticatedAccount;
|
||||
import org.whispersystems.textsecuregcm.auth.AuthenticationCredentials;
|
||||
import org.whispersystems.textsecuregcm.auth.BasicAuthorizationHeader;
|
||||
|
@ -217,6 +218,7 @@ public class AccountController {
|
|||
@Timed
|
||||
@GET
|
||||
@Path("/{transport}/code/{number}")
|
||||
@FilterAbusiveMessages
|
||||
@Produces(MediaType.APPLICATION_JSON)
|
||||
public Response createAccount(@PathParam("transport") String transport,
|
||||
@PathParam("number") String number,
|
||||
|
|
Loading…
Reference in New Issue