ConfirmByKeyTrait
Confirms a record by its author with the key from an email, Repository layer (currently a discussion post).
Calls <apiEndpoint>/confirmByKey (internal Api action without action*(), grant guest)
with id and key; the Api presenter has internalActionConfirmByKey(int $id, string $key). The key,
the confirmedAt write and the limit are handled by the Api
(ConfirmByKeyTrait).
The advert modules have their own AdvertConfirmByKeyTrait: their Api action takes
advertId and the bridge passes parameters by name.
Table of Contents
Methods
Methods
confirmByKey()
public
confirmByKey(int $id, string $key) : Result
Parameters
- $id : int
- $key : string