FormTrait
Requires in the host class: `$this->translator`, `$this->translatorDomain`, `$this->advertPasswordResetManager`, `getAdvert()`, and from `ModalTrait`: `createSentContent()`, `updateModalContent()`.
The form only passes the advert id and the entered e-mail to the Api
(:Api:Bazaar:Advert:sendPasswordReset). The password is not generated or overwritten here:
the Api sends a one-time edit link where the owner chooses a new password. The attempt limit
is held by the Api on the server (per advert and per IP); a session limit could be bypassed by
dropping the cookie.
Table of Contents
Methods
- onSuccess() : void
- createComponentForm() : Form
Methods
onSuccess()
public
onSuccess(Form $form, ArrayHash $values) : void
Parameters
- $form : Form
- $values : ArrayHash
createComponentForm()
protected
createComponentForm() : Form