fix: avoid the front-end calling api/renew loop (#2792)
parent
cdcd9a313a
commit
edd808f124
|
@ -173,6 +173,7 @@ var signupHandler = func(w http.ResponseWriter, r *http.Request, d *data) (int,
|
||||||
}
|
}
|
||||||
|
|
||||||
var renewHandler = withUser(func(w http.ResponseWriter, r *http.Request, d *data) (int, error) {
|
var renewHandler = withUser(func(w http.ResponseWriter, r *http.Request, d *data) (int, error) {
|
||||||
|
w.Header().Set("X-Renew-Token", "false")
|
||||||
return printToken(w, r, d, d.user)
|
return printToken(w, r, d, d.user)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue