Fix silly inversion mistake

This commit is contained in:
Colin McDonald 2016-07-13 19:47:52 -04:00
parent 3e78262cd5
commit 6c16fa7b18
2 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ public final class POSTDisposableLoginTokens implements Handler<RoutingContext>
return;
}
if (IpUtils.isValidIp(userIp)) {
if (!IpUtils.isValidIp(userIp)) {
ErrorUtils.respondInvalidInput(ctx, "Ip address \"" + userIp + "\" is not valid.");
return;
}

View File

@ -25,7 +25,7 @@ public final class GETUsersIdRequiresTotp implements Handler<RoutingContext> {
String userIp = ctx.request().getParam("userIp");
if (IpUtils.isValidIp(userIp)) {
if (!IpUtils.isValidIp(userIp)) {
ErrorUtils.respondInvalidInput(ctx, "Ip address \"" + userIp + "\" is not valid.");
return;
}