Revert "chore: debug playwright shutdown errors (#15456)"
This reverts commit f2267082d9.
This commit is contained in:
parent
f2267082d9
commit
07f54e878e
2 changed files with 4 additions and 11 deletions
|
|
@ -2,7 +2,6 @@ package server
|
|||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"net/http"
|
||||
"strings"
|
||||
"time"
|
||||
|
|
@ -98,7 +97,6 @@ func loginHandler(auth auth.Auth) http.HandlerFunc {
|
|||
}
|
||||
|
||||
if !auth.IsAdminPasswordValid(req.Password) {
|
||||
fmt.Println("auth: invalid password", req.Password)
|
||||
http.Error(w, "Invalid password", http.StatusUnauthorized)
|
||||
return
|
||||
}
|
||||
|
|
@ -135,7 +133,6 @@ func ensureAuthHandler(auth auth.Auth) mux.MiddlewareFunc {
|
|||
// check jwt token
|
||||
ok, err := auth.ValidateJwtToken(jwtFromRequest(r))
|
||||
if !ok || err != nil {
|
||||
fmt.Println("auth: invalid auth token", jwtFromRequest(r))
|
||||
http.Error(w, "Unauthorized", http.StatusUnauthorized)
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue