Fix compilation issue with previous commit
This commit is contained in:
parent
ee3a012f80
commit
2ff31dab1d
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user