plug_password v0.2.1 PlugPassword.Block
Plug used to add simple authentication.
Options should be provided with at least passwords field.
Possible options:
:passwords
- list of passwords that should allow users to pass authentication:template
- module which implement PlugPassword.Template.Behaviour
Link to this section Summary
Link to this section Functions
Link to this function
call(conn, options)
Checks if password is matching.
If password will match or is already set in cookie then it will continue to pipe connection. Otherwise it will render form.
Link to this function
init(options)