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 {