Page MenuHomePhabricator

Change default authentication settings
Open, WishlistPublic

Description

When installing this plugin you always have to change the following settings in dokuwiki.php
It must be possible to build it in the plugin itself just to be thorough these are the changes that if made by the plugin makes life a little easier.
Minus is the default setting
Plus is the new wanted setting
Will you make this change please ?
Thanks in advance.

dokuwiki.php

-      $conf['profileconfirm'] = 1;             //Require current password to confirm changes to user profile
+   $conf['profileconfirm'] = 0;             //Require current password to confirm changes to user profile
 
-       $conf['auth_security_timeout'] = 900;    //time (seconds) auth data is considered valid, set to 0 to recheck on every page view
+    $conf['auth_security_timeout'] = 24*3600;    //time (seconds) auth data is considered valid, set to 0 to recheck on every page view

Event Timeline

As far as I know, a plugin cannot overwrite core settings, only plugin settings. As these are core settings, those changes have to be made manually. However, even if it was possible to change the settings, I would prefer not to change settings automatically.

$conf is global. You can change it from your plugin.

While this works in an action plugin when registering the DOKUWIKI_STARTED event, the configuration manager does not reflect the changes - IMHO this is misleading. It should be possible to save the changes using config plugin's config manager classes - I'll investigate that.