Openmaize v2.5.1 Mix.Tasks.Openmaize.Gen.Phoenixauth

Create modules for authorization and, optionally, email confirmation.

Options

There are two options:

  • confirm - add functions for email confirmation and password resets

    • the default is false
  • api - create files to authenticate an api instead of a html application

    • the default is false

Examples

In the root directory of your project, run the following command (add --confirm if you want to create functions for email confirmation):

mix openmaize.gen.phoenixauth

If you want to create files for an api, run the following command:

mix openmaize.gen.phoenixauth --api