WARNING LocalSite.cfg could not be found (This is normal for a new installation)
This Foswiki is running using a bootstrap configuration worked out by detecting the layout of the installation. To complete the bootstrap process you should either:
  • Restore the missing LocalSite.cfg from a backup, or
  • Complete the new Foswiki installation:

You have been logged in as a temporary administrator. Any requests made to this Foswiki will be treated as requests made by an administrator with full rights Your temporary administrator rights will "stick" until you've logged out from this session.

PerlDoc

See PublishedAPI for packages intended to be used by Plugin and Contrib authors, or browse all packages.
See also Developing plugins, Developer's Bible, Technical Overview


Parent package: Foswiki::LoginManager
Child packages:

    SMELL / FIX / TODO count: 2

    internal package Foswiki::LoginManager::TemplateLogin is a Foswiki::LoginManager

    This is a login manager that you can specify in the security setup section of configure. It provides users with a template-based form to enter usernames and passwords, and works with the PasswordManager that you specify to verify those passwords.

    Subclass of Foswiki::LoginManager; see that class for documentation of the methods of this class.

    ClassMethod new ($session, $impl)

    Construct the TemplateLogin object

    ObjectMethod forceAuthentication () → $boolean

    method called when authentication is required - redirects to (...|view)auth Triggered on auth fail

    SMELL: This breaks some applications such as MS Excel. Return

    ObjectMethod loginUrl () → $loginUrl

    Overrides LoginManager. Content of a login link.

    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"}%

    TODO: add JavaScript password encryption in the template
    Topic revision: r1 - 15 Mar 2026, UnknownUser
    This site is powered by FoswikiCopyright © by the contributing authors. All material on this site is the property of the contributing authors.
    Ideas, requests, problems regarding Foswiki? Send feedback