fix: race conditions, cookie logic, and the try again button (#833)
* fix(lib): fix race condition when rendering multiple challenge pages at once Closes #832 Signed-off-by: Xe Iaso <me@xeiaso.net> * fix(web): make try again button work Looks like the intent of this was "try the solution again". This fix makes the client try the challenge again. Signed-off-by: Xe Iaso <me@xeiaso.net> * fix(web): don't block a user if they have an invalid challenge cookie Signed-off-by: Xe Iaso <me@xeiaso.net> * docs: update CHANGELOG Signed-off-by: Xe Iaso <me@xeiaso.net> --------- Signed-off-by: Xe Iaso <me@xeiaso.net>
This commit is contained in:
parent
0fd4bb81b8
commit
d28991ce8d
6 changed files with 187 additions and 147 deletions
|
|
@ -394,8 +394,6 @@ func (s *Server) PassChallenge(w http.ResponseWriter, r *http.Request) {
|
|||
return
|
||||
}
|
||||
|
||||
s.ClearCookie(w, CookieOpts{Name: anubis.TestCookieName, Host: r.Host})
|
||||
|
||||
redir := r.FormValue("redir")
|
||||
redirURL, err := url.ParseRequestURI(redir)
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue