defmodule Rivet.Ident.Context do def mailer(), do: Application.get_env(:rivet_email, :mailer) defmacro __using__(_) do quote location: :keep do @notify_password_changed Application.get_env( :rivet, :notify_password_changed, Rivet.Ident.User.Notify.PasswordChanged ) @notify_password_reset Application.get_env( :rivet, :notify_password_reset, Rivet.Ident.User.Notify.PasswordReset ) @notify_user_failed_change Application.get_env( :rivet, :notify_user_failed_change, Rivet.Ident.User.Notify.FailedChange ) @notify_user_verification Application.get_env( :rivet, :notify_user_verification, Rivet.Ident.User.Notify.Verification ) end end end