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:
@ -7208,7 +7208,7 @@ const init = async () => {
|
||||
}
|
||||
} catch (err) {}
|
||||
|
||||
eventSource = new window.EventSource('events?token=' + encodeURIComponent(token)+'&request='+encodeURIComponent(JSON.stringify(request))+slow)
|
||||
eventSource = new window.EventSource('events?singleUseToken=' + encodeURIComponent(token)+'&request='+encodeURIComponent(JSON.stringify(request))+slow)
|
||||
let eventID = window.setTimeout(() => dom._kids(statusElem, 'Connecting... '), 1000)
|
||||
eventSource.addEventListener('open', (e: Event) => {
|
||||
log('eventsource open', {e})
|
||||
|
Reference in New Issue
Block a user