Openmaize v2.1.0 Mix.Tasks.Openmaize.Gen.Phoenixauth

Create modules for authorization and, optionally, email confirmation.

Options

There are three options:

  • confirm - add functions for email confirmation and password resets

    • the default is false
  • ecto - use ecto for database interaction

    • the default is true
  • html - add html files

    • the default is false

Examples

In the root directory of your project, run the following command (add the --no-ecto option if you are not using ecto):

mix openmaize.gen.phoenixauth