Fix compilation issue with previous commit

This commit is contained in:
colinmcdonald22 2016-10-21 20:54:10 -04:00
parent ee3a012f80
commit 2ff31dab1d

View File

@ -30,7 +30,7 @@ public final class POSTUsersIdSetupTotp implements Handler<RoutingContext> {
JsonObject requestBody = ctx.getBodyAsJson(); JsonObject requestBody = ctx.getBodyAsJson();
String secret = requestBody.getString("secret"); String secret = requestBody.getString("secret");
int totpCode = requestBody.getInteger("totpCode" -1); int totpCode = requestBody.getInteger("totpCode", -1);
if (TotpUtils.authorizeUser(secret, totpCode)) { if (TotpUtils.authorizeUser(secret, totpCode)) {
user.setTotpSecret(secret); user.setTotpSecret(secret);