Mail relay: the access-key field is off by default (mail.relay.accessKeyField)
A token issued by hand is set by a developer: setRelayToken() from a script, or mail.relay.token. The panel field and its route take a token only when the project switches the field on. Docs and AGENT.md say when such a token is needed and how to set it; a token of another host is refused on every way in. Co-Authored-By: Claude Fable 5.2 <[email protected]>
This commit is contained in:
co-authored by
Claude Fable 5.2
parent
1a11cefffa
commit
edee3a321f
@@ -9,6 +9,13 @@ import { RELAY_BASE_URL } from './constants.js'
|
||||
* switches the transport, the enrolment and the confirm route off.
|
||||
*/
|
||||
export type RelayOptions = {
|
||||
/**
|
||||
* Show "Enter an access key" in the panel's state block, and let its route store a token an admin pastes.
|
||||
* Default `false`: a token issued by hand (for a site the service cannot call back) is set by a developer —
|
||||
* `setRelayToken(payload, token)` in a script, or `token` below. `true` gives admins the field. Either way a
|
||||
* token of another site is refused.
|
||||
*/
|
||||
accessKeyField?: boolean
|
||||
/**
|
||||
* "Forgot password" is a visitor's lever like a form: the service lets `account` mail use the site's
|
||||
* whole hour. So the plugin limits it itself, per address and per visitor (the request's address).
|
||||
|
||||
Reference in New Issue
Block a user