Login
Introduction
The login module handles user login, using username/password, email/password and/or automatic cookie-based authentication.
Package
Parameter prefix
Login
Login.createEntry
Logs a user in.
If you want to allow people to login using either the username OR the email address you have to set /MODULES/LOGIN/ALLOWEMAILLOGIN to true in the corinis.xml
Authority
none
Parameter
Required
| loginView.createEntry | Required to perform the function |
| loginView.username | the username (as provided to Modules/UserManager?.createEntry), may also be the email address |
| loginView.userauth | the password assigned to the username |
Optional
| loginView.remember | Set this to 'true' to enable autologin |
Return tree
Standard return tree
Login.deleteEntry
Logs a user out.
This will also delete the remember cookie!
Authority
none
Parameter
Required
| loginView.deleteEntry | Required to perform the function |
Return tree
Standard return tree
Login.createAutoLogin
This functions looks for the autologin cookie and logs the user in if it is valid and recorded in the database.
The autologin feature remembers the cookie AND the ip address used when the cookie was set. If you have a laptop and have a different IP then when you logged in last, you will be asked for a username/password again.
Authority
none
Parameter
none
Return tree
Standard return tree
