View Source AshAuthentication.Strategy.Password.RequestPasswordResetPreparation (ash_authentication v4.3.5)

Prepare a query for a password reset request.

This preparation performs three jobs, one before the query executes and two after:

  1. it constraints the query to match the identity field passed to the action.
  2. if there is a user returned by the query, then a. generate a reset token and b. publish a notification.

Always returns an empty result.

Summary

Functions

init(opts)

Callback implementation for Ash.Resource.Preparation.init/1.