mirror of
https://github.com/wahyd4/loginsrv.git
synced 2026-08-09 04:46:29 +10:00
Increment refresh counter
This commit is contained in:
@@ -186,6 +186,7 @@ func (h *Handler) handleRefresh(w http.ResponseWriter, r *http.Request, userInfo
|
||||
if userInfo.Refreshes >= h.config.JwtRefreshes {
|
||||
h.respondMaxRefreshesReached(w, r)
|
||||
} else {
|
||||
userInfo.Refreshes++
|
||||
h.respondAuthenticated(w, r, userInfo)
|
||||
logging.Application(r.Header).WithField("username", userInfo.Sub).Info("refreshed jwt")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user