Process login requests
process_login_post(
req,
res,
user_param = "user",
password_param = "password",
user = Sys.getenv("AMBHTMX_USER"),
password = Sys.getenv("AMBHTMX_PASSWORD"),
user_error = "Invalid user",
password_error = "Invalid password",
cookie_loggedin = "loggedin",
cookie_errors = "errors",
login_url = "/login",
success_url = "/"
)
request object
response object
if you need to customize the name of the user parameter
if you need to customize the name of the password parameter
if you want to customize the required user or it uses AMBHTMX_USER
if you want to customize the required password or it uses AMBHTMX_PASSWORD
if you need to customize the error message for the user
if you need to customize the error message for the password
if you need to customize the name of the loggedin cookie
if you need to customize the name of the errors cookie
if you need to customize the url of the login form
if you need to customize the url of the success loggedin process
the login process response