From 36745bb55b1d7cd464b085e410333089504591c1 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Tue, 6 Jun 2023 22:27:34 -0400 Subject: [PATCH] fix: PostPubkeyChallenge should be using ChallengeRequest --- controller/auth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controller/auth.go b/controller/auth.go index 6d28f71..e86d823 100644 --- a/controller/auth.go +++ b/controller/auth.go @@ -192,7 +192,7 @@ func (a *AuthController) PostLogin() { // PostChallenge handles the POST /api/auth/pubkey/challenge request to generate a challenge for a user's public key. func (a *AuthController) PostPubkeyChallenge() { - var r LoginRequest + var r ChallengeRequest // Read the login request from the client. if err := a.Ctx.ReadJSON(&r); err != nil {