internal package
Foswiki::LoginManager::TemplateLogin is a
Foswiki::LoginManager ClassMethod
new ($session, $impl) ObjectMethod
forceAuthentication () → $boolean method called when authentication is required - redirects to (...|view)auth Triggered on auth fail
ObjectMethod
loginUrl () → $loginUrl ObjectMethod
login( $query, $session ) If a login name and password have been passed in the query, it validates these and if authentic, redirects to the original script. If there is no username in the query or the username/password is invalid (validate returns non-zero) then it prompts again.
If a flag to remember the login has been passed in the query, then the corresponding session variable will be set. This will result in the login cookie being preserved across browser sessions.
The password handler is expected to return a perl true value if the password is valid. This return value is stored in a session variable called VALIDATION. This is so that password handlers can return extra information about the user, such as a list of Wiki groups stored in a separate database, that can then be displayed by referring to %SESSION_VARIABLE{"VALIDATION"}%