Disallow registration from clients registered on another relay.

This commit is contained in:
Moxie Marlinspike committed 2014-02-25 17:04:46 -08:00
1 parent 129e372613
commit a63cdc76b0
2 files changed
+11

No files matched your search

@@ -135,6 +135,10 @@ public class AccountController {
throw new WebApplicationException(Response.status(403).build());
}
if (accounts.isRelayListed(number)) {
throw new WebApplicationException(Response.status(417).build());
}
Device device = new Device();
device.setId(Device.MASTER_ID);
device.setAuthenticationCredentials(new AuthenticationCredentials(password));