[dokuwiki] Re: Auth backwards compatibility (new patch)

  • From: Guy Brand <gb@xxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Fri, 8 Mar 2013 09:31:40 +0100

On Mar 07, Moritz Bartl wrote:

Hello

> Instead, the new patch (attached) introduces backwards compatibility,
> and could well be removed after some migration period. It introduces an
> extra comparison, so the config variable authtype is not only checked
> against the plugin name, but also against 'auth' + plugin name.

+1

To help depreciating this little fragment of code after the migration
period (which could be two releases as we support a stable and
old-stable release) how about adding a note to the admin (through the
msg() function) inviting her/him to update the config of her/his wiki
when the authtype setting does not match the auth plugin name? Such as

  "In your configuration, the option foo should be named authfoo, see 
   [[this]] link"

This has been suggested in discussion on IRC too.

-- 
bug

-- 
DokuWiki mailing list - more info at
http://www.dokuwiki.org/mailinglist

Other related posts: