1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-07-22 17:18:37 +00:00

Use SQL transaction when creating user sessions

This commit is contained in:
Frédéric Guillot 2020-12-22 20:28:34 -08:00
parent 7be9f5989e
commit 60a7362327
4 changed files with 27 additions and 11 deletions

View file

@ -204,7 +204,7 @@ func (m *middleware) handleAuthProxy(next http.Handler) http.Handler {
}
}
sessionToken, _, err := m.store.CreateUserSession(user.Username, r.UserAgent(), clientIP)
sessionToken, _, err := m.store.CreateUserSessionFromUsername(user.Username, r.UserAgent(), clientIP)
if err != nil {
html.ServerError(w, r, err)
return