mirror of
https://github.com/TecharoHQ/anubis.git
synced 2026-04-26 01:52:42 +00:00
fix(lib): record challenges issused over embedded HTML (#543)
Closes #531 This changes `anubis_challenges_issued` to be a vector counter that records the challenge issuance method. Signed-off-by: Xe Iaso <me@xeiaso.net>
This commit is contained in:
@@ -73,6 +73,7 @@ func (s *Server) RenderIndex(w http.ResponseWriter, r *http.Request, rule *polic
|
||||
s.respondWithError(w, r, "Client Error: Please ensure your browser is up to date and try again later.")
|
||||
}
|
||||
|
||||
challengesIssued.WithLabelValues("embedded").Add(1)
|
||||
challenge := s.challengeFor(r, rule.Challenge.Difficulty)
|
||||
|
||||
var ogTags map[string]string = nil
|
||||
|
||||
Reference in New Issue
Block a user