This is an old revision of the document!
Table of Contents
Auto Login
There are two ways to implement the auto login feature.
1. Embedded GOTO Syntax
The first uses the GOTO syntax with the user
wildcard in place of the page id:
~~GOTO:user~~
This must be placed on the wiki's main page, so that when the user logs in the page displayed in the browser is the page with this markup. No message printed to the screen. and the user is redirected to the user page in the root namespace. If the userid is “foo”, the user page will be “:foo”. This does not take a time setting: ?tm
. The redirection occurs immediately on login.
2. Configured Background Process
On login, the auto login feature redirects the user to the user's page. This page is based on the userid
and is configured using the auto_options
setting. For this to work, the auto_login
option must be set to true. This feature does not require any additional syntax.
Configuration
Option | Description | Default |
---|---|---|
seconds | Time till redirection (seconds) | 3 |
minSeconds | Minimum time allowed till redirection (seconds) | 2 |
auto_login | On login, automatically go to predefined page, as set in auto_options | false |
auto_options | Target for the auto_login page(See auto_options) | :user_page |
common_ns | Arbitrarily defined namespace of any depth where all auto login pages will reside. This can include the wildcard user_ns |
Auto_Options
There a four options available for ddefining the user page and namespace to which the auto login will be directed. In each case user
stands for the userid and ns
for namespace. If the userid is “foo”, then the first option would give you “:foo” in the root namespace, the second option “:foo:foo”. The start page is one of DokuWiki's basic
configurations and defaults to start
. The fourth option requires that the GOTO common_ns
option be set. These are the four possibilities for defining the auto login page:
- :user_page
:foo - :user_ns:user_page
:foo:foo - :user_ns:start_page
foo:start - :common_ns:user_page
<common_ns>:foo