[dokuwiki] Re: Disable 'Remember me'

  • From: Thomas Wingate <thomas@xxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Tue, 29 Jan 2008 13:18:23 +0100

Gabriel, thanks for the insights.
The solution using CSS seems the better way in this case as we use a custom template.

Thanks,
T

Gabriel Birke wrote:
Hi,

a very fast fix for "disabling" the checkbox would be this rule in the
style.css of your theme:

#dw__login label.simple {display:none;}

This would remove the element from sight. However, if some of your users use
text browsers or are well-versed with some Firefox extensions, then this
solution will not work, since it only hides the form element while it's
still present in the HTML.

An alternative would be to modify your template (main.php) to check $ACT for
"login" and remove the HTML of the label and the checkbox from the generated
content of the "tpl_content()" call.
Modifying html_login() is not advisable because you have to do it again and
again with each DW update. But if you don't upgrade often, then it could be
the easiest and fastest option.

Greetings,
Gabriel


-----Original Message-----
From: dokuwiki-bounce@xxxxxxxxxxxxx [mailto:dokuwiki-bounce@xxxxxxxxxxxxx] On Behalf Of Thomas Wingate
Sent: Friday, January 25, 2008 4:20 PM
To: dokuwiki@xxxxxxxxxxxxx
Subject: [dokuwiki] Disable 'Remember me'

Is there an easy way to disable "Remember me"? or will I have to hack the php for the login page?

Thanks,
Thomas
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist


--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: