This module manages Apostrophe's standard login form and related capabilities.
|String||Sets the login endpoint.|
|Boolean||If false, the login form is disabled.|
|Boolean||If true, a password reset link is added to the login.|
|Object||If set to an object, the |
|Object||Used to prevent brute-force password guessing.|
The default login endpoint for access to the ApostropheCMS backend is
/login. Passing a string to the
loginUrl option will change this endpoint. Note that the desired endpoint should be prefixed with a forward slash, e.g.
true. If set to
false, the normal login form at
/login is completely disabled.
false. If both
passwordReset are set to
true, a password reset link is added to the login form. Clicking on this link brings up a form for the user to enter the email address associated with their account. The address is compared to the list of existing user emails and a reset link is sent if that email is found. Note, the site email settings must be correctly configured prior to using the password reset. See the email guide for help in configuring the module. It is also recommended that the
baseUrl be set in the
data/local.js or other server configuration file or through the
APOS_BASE_URL environment variable. The user will not be notified if the email check fails or if the email fails to send due to improper configuration. However, debug information will output in the terminal.
48, giving the user 48 hours to reset the password based on the emailed link.
If set to an object with a
lifetime subproperty, a bearer token is valid for that many seconds. If this option is not set, the lifetime defaults to 2 weeks.
Can be set to an object with the subproperties
allowedAttempts (defaults to 3),
perMinutes (defaults to 1), and
lockoutMinutes (defaults to 1). Prevents brute-force guessing of a single user's password.