Tags:
create new tag
view all tags
---+ Package =TWiki::LoginManager::TemplateLogin= This is a login manager that you can specify in the security setup section of [[%SCRIPTURL{"configure"}%][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 TWiki::LoginManager; see that class for documentation of the methods of this class. %TOC% ---++ ClassMethod *new* <tt>($session,$impl)</tt> Construct the TemplateLogin object ---++ ObjectMethod *forceAuthentication* <tt>() -> boolean</tt> method called when authentication is required - redirects to (...|view)auth Triggered on auth fail ---++ ObjectMethod *loginUrl* <tt>() -> $loginUrl</tt> TODO: why is this not used internally? When is it called, and why Content of a login link ---++ ObjectMethod *login* <tt>($query,$twiki)</tt> 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 TWiki groups stored in a separate database, that can then be displayed by referring to %<nop>SESSION_VARIABLE{"VALIDATION"}%
E
dit
|
A
ttach
|
Watch
|
P
rint version
|
H
istory
: r1
|
B
acklinks
|
V
iew topic
|
Ra
w
edit
|
M
ore topic actions
Topic revision: r1 - 2008-01-22
-
TWikiContributor
Home
Site map
Sandbox web
TWiki web
XPDays2010 web
XPDays2011 web
XPDays2011SponsoringDemo web
XPDays2012 web
TWiki Web
User registration
Users
Groups
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
View
Raw View
Print version
Find backlinks
History
More topic actions
Edit
Raw edit
Attach file or image
Edit topic preference settings
Set new parent
More topic actions
User Reference
ATasteOfTWiki
TextFormattingRules
TWikiVariables
FormattedSearch
QuerySearch
TWikiDocGraphics
TWikiSkinBrowser
InstalledPlugins
Admin Maintenance
Reference Manual
InterWikis
ManagingUsers
ManagingWebs
TWikiSiteTools
TWikiPreferences
WebPreferences
Categories
Admin Documentation
Admin Tools
Developer Doc
User Documentation
User Tools
Account
Log In
Register User
E
dit
A
ttach
Copyright © 1999-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback
Note:
Please contribute updates to this topic on TWiki.org at
TWiki:TWiki.TWikiLoginManagerTemplateLoginDotPm
.