Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RecordPasswordResetRequest ¶
type RecordPasswordResetRequest struct { Email string `form:"email" json:"email"` // contains filtered or unexported fields }
RecordPasswordResetRequest is an auth record reset password request form.
func NewRecordPasswordResetRequest ¶
func NewRecordPasswordResetRequest(app core.App, collection *models.Collection) *RecordPasswordResetRequest
NewRecordPasswordResetRequest creates a new RecordPasswordResetRequest form initialized with from the provided core.App instance.
If you want to submit the form as part of a transaction, you can change the default Dao via [SetDao()].
func (*RecordPasswordResetRequest) SetDao ¶
func (form *RecordPasswordResetRequest) SetDao(dao *daos.Dao)
SetDao replaces the default form Dao instance with the provided one.
func (*RecordPasswordResetRequest) Submit ¶
func (form *RecordPasswordResetRequest) Submit(interceptors ...InterceptorFunc[*models.Record]) error
Submit validates and submits the form. On success, sends a password reset email to the `form.Email` auth record.
You can optionally provide a list of InterceptorFunc to further modify the form behavior before persisting it.
func (*RecordPasswordResetRequest) Validate ¶
func (form *RecordPasswordResetRequest) Validate() error
Validate makes the form validatable by implementing validation.Validatable interface.
This method doesn't check whether auth record with `form.Email` exists (this is done on Submit).