mirror of
https://github.com/mjl-/mox.git
synced 2025-07-10 07:54:40 +03:00
webmail: rename query string param "token" to "singleUseToken" to be less scary in access logs
these singleusetokens can be redeemed once. so when you see it in the logs, it can't be used again. they are short-lived anyway. this change should help prevent me periodically investigating token handling...
This commit is contained in:
@ -194,8 +194,8 @@ func handle(apiHandler http.Handler, isForwarded bool, accountPath string, w htt
|
||||
log := pkglog.WithContext(ctx).With(slog.String("userauth", ""))
|
||||
|
||||
// Server-sent event connection, for all initial data (list of mailboxes), list of
|
||||
// messages, and all events afterwards. Authenticated through a token in the query
|
||||
// string, which it got from a Token API call.
|
||||
// messages, and all events afterwards. Authenticated through a single use token in
|
||||
// the query string, which it got from a Token API call.
|
||||
if r.URL.Path == "/events" {
|
||||
serveEvents(ctx, log, accountPath, w, r)
|
||||
return
|
||||
|
Reference in New Issue
Block a user