Skip to content

User confirmation

David Whitlock edited this page Nov 25, 2017 · 5 revisions

This page gives an overview of how to use Phauxth.Confirm to provide user confirmation, using an email address or phone number.

If you have setup your app using mix phauxth.new --confirm, the basic user confirmation functionality has been set up using bamboo, with the local adapter, which is ideal for development.

To use a different email adapter, or another email / phone library, read the instructions below.

Bamboo with a different adapter

Bamboo has adapters for Mailgun, Mailjet, Mandrill, Sendgrid, SMTP, SparkPost, PostageApp, Postmark and Sendcloud. See Bamboo for more information.

Other email / phone library

If you do not want to use Bamboo, follow the instructions below:

  1. Edit lib/my_app/message.ex file, using the email / phone library of your choice
  2. Remove the lib/my_app/mailer.ex file
  3. Remove the Bamboo entries in the config/config.exs and config/test.exs files
  4. Remove bamboo from the deps section in the mix.exs file
Clone this wiki locally