type

PasswordResetConfig

type PasswordResetConfig struct { // TokenDuration is the lifetime of a reset token. Zero defaults to one hour. TokenDuration time.Duration // Send delivers a newly issued token. It should enqueue or send the message // before returning; returning an error prevents a success response. Send func(context.Context, PasswordResetNotification) error }

Password-recovery token lifetime and delivery callback.

Source core/config.go:286

@param TokenDuration
Lifetime of a reset token; zero defaults to one hour.
@param Send
Delivers the newly issued token; an error prevents a success response.

Related types