DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:goto:supplment

This is an old revision of the document!


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

OptionDescriptionDefault
secondsTime till redirection (seconds) 3
minSecondsMinimum time allowed till redirection (seconds) 2
auto_loginOn login, automatically go to predefined page, as set in auto_options false
auto_optionsTarget for the auto_login page(See auto_options):user_page
common_nsArbitrarily 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:

  1. :user_page
    :foo
  2. :user_ns:user_page
    :foo:foo
  3. :user_ns:start_page
    foo:start
  4. :common_ns:user_page
    <common_ns>:foo, where common_ns is
plugin/goto/supplment.1552602256.txt.gz · Last modified: 2019-03-14 23:24 by turnermm