Enable "sms" transport for +98

This commit is contained in:
Chris Eager
2021-07-23 11:09:21 -05:00
committed by Chris Eager
parent 31bbbbb5e0
commit 8f41176c76

View File

@@ -222,10 +222,6 @@ public class AccountController {
throw new WebApplicationException(Response.status(400).build());
}
if (number.startsWith("+98")) {
transport = "voice";
}
String requester = ForwardedIpUtil.getMostRecentProxy(forwardedFor).orElseThrow();
Optional<StoredVerificationCode> storedChallenge = pendingAccounts.getCodeForNumber(number);