Skip to content

Commit

Permalink
Refactor BeginLoginAdmin to handle error getting user credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
waveyboym committed Sep 26, 2024
1 parent b36057a commit fceed30
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion occupi-backend/pkg/handlers/auth_handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,6 @@ func BeginLoginAdmin(ctx *gin.Context, appsession *models.AppSession) {
http.StatusOK,
"Error getting user credentials, please register for WebAuthn",
gin.H{"error": "Error getting user credentials, please register for WebAuthn"}))
fmt.Printf("error getting user credentials: %v", err)
return
}
webauthnUser := models.NewWebAuthnUser([]byte(requestEmail.Email), requestEmail.Email, requestEmail.Email, cred)
Expand Down

0 comments on commit fceed30

Please sign in to comment.