AdvertPasswordResetTrait
Forgotten password of an advert placed without an account, Repository layer (Bazaar and Comcat).
Calls <apiEndpoint>/sendPasswordReset and <apiEndpoint>/resetPassword; the token, email
and limits live in the Api (AdvertPasswordResetManager).
Table of Contents
Methods
- redeemManageKey() : Result
- Redeems the key from the advert management link in the insertion email.
- resetPassword() : Result
- sendPasswordReset() : Result
Methods
redeemManageKey()
Redeems the key from the advert management link in the insertion email.
public
redeemManageKey(int $advertId, string $key) : Result
Calls <apiEndpoint>/redeemManageKey (internal Api action without action*(), grant
guest); the Api verifies the digest, the expiration and the password binding
(ManageKeyTrait).
Parameters
- $advertId : int
- $key : string
Return values
ResultresetPassword()
public
resetPassword(int $advertId, string $key, string $password) : Result
Parameters
- $advertId : int
- $key : string
- $password : string
Return values
ResultsendPasswordReset()
public
sendPasswordReset(int $advertId, string $email) : Result
Parameters
- $advertId : int
- $email : string