Enable "sms" transport for +98
This commit is contained in:
parent
31bbbbb5e0
commit
8f41176c76
|
@ -222,10 +222,6 @@ public class AccountController {
|
||||||
throw new WebApplicationException(Response.status(400).build());
|
throw new WebApplicationException(Response.status(400).build());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (number.startsWith("+98")) {
|
|
||||||
transport = "voice";
|
|
||||||
}
|
|
||||||
|
|
||||||
String requester = ForwardedIpUtil.getMostRecentProxy(forwardedFor).orElseThrow();
|
String requester = ForwardedIpUtil.getMostRecentProxy(forwardedFor).orElseThrow();
|
||||||
|
|
||||||
Optional<StoredVerificationCode> storedChallenge = pendingAccounts.getCodeForNumber(number);
|
Optional<StoredVerificationCode> storedChallenge = pendingAccounts.getCodeForNumber(number);
|
||||||
|
|
Loading…
Reference in New Issue