Openmaize v2.5.1 Openmaize.Authenticate
Authenticate the current user, using Plug sessions.
Options
There are two options:
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
Summary
Functions
Callback implementation for Plug.init/1
.