fix: PostPubkeyChallenge should be using ChallengeRequest
This commit is contained in:
parent
db3ba1f014
commit
36745bb55b
|
@ -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.
|
// PostChallenge handles the POST /api/auth/pubkey/challenge request to generate a challenge for a user's public key.
|
||||||
func (a *AuthController) PostPubkeyChallenge() {
|
func (a *AuthController) PostPubkeyChallenge() {
|
||||||
var r LoginRequest
|
var r ChallengeRequest
|
||||||
|
|
||||||
// Read the login request from the client.
|
// Read the login request from the client.
|
||||||
if err := a.Ctx.ReadJSON(&r); err != nil {
|
if err := a.Ctx.ReadJSON(&r); err != nil {
|
||||||
|
|
Loading…
Reference in New Issue