Openmaize.Login
Module to handle password authentication and the generation, and distribution, of tokens.
If the login is successful, the token will either be stored in a cookie or sent back in the body of the response.
Summary↑
call(conn, arg2) | Function to handle user login |
Functions
Function to handle user login.
If there is no error, a token will be created and sent to the user so that the user can make further requests without logging in again.
If the option redirects
is not set, or set to true, the user will then
be redirected to the main page / user page. If there is an error, the
user will be redirected to the login page.
If redirects
is set to false, then obviously there will be no redirects.