diff --git a/src/main/java/net/frozenorb/apiv3/route/users/POSTUsersIdSetupTotp.java b/src/main/java/net/frozenorb/apiv3/route/users/POSTUsersIdSetupTotp.java index 02e7af8..3c58b31 100644 --- a/src/main/java/net/frozenorb/apiv3/route/users/POSTUsersIdSetupTotp.java +++ b/src/main/java/net/frozenorb/apiv3/route/users/POSTUsersIdSetupTotp.java @@ -30,7 +30,7 @@ public final class POSTUsersIdSetupTotp implements Handler { JsonObject requestBody = ctx.getBodyAsJson(); String secret = requestBody.getString("secret"); - int totpCode = requestBody.getInteger("totpCode" -1); + int totpCode = requestBody.getInteger("totpCode", -1); if (TotpUtils.authorizeUser(secret, totpCode)) { user.setTotpSecret(secret);