Openmaize v3.0.1 Openmaize.Authenticate
Authenticate the current user, using Plug sessions.
Options
There are two options - in most cases you will not need to change the default values:
repo - the name of the repo
- the default is MyApp.Repo - using the name of the project
user_model - the name of the user model
- the default is MyApp.User - using the name of the project
Example using Phoenix
Add the following line to the pipeline in the web/router.ex
file:
plug Openmaize.Authenticate