Openmaize v1.0.0-beta.5 Mix.Tasks.Openmaize.Gen.Phoenixauth
Create modules for authorization and, optionally, email confirmation.
Options
There is one option:
api - provide functions for an api
- the default is false
Examples
In the root directory of your project, run the following command
(add the --api
option if your app is for an api):
mix openmaize.gen.phoenixauth
This command will create an Authorize module in the web/controllers
directory and tests in the test/controllers
directory.
You will be asked if you want to add modules for email confirmation
and password resetting, and if you reply yes, there will be a Confirm
module created in the web/controllers
directory and tests added to
the tests/controllers
directory.