Default "remember_me_checkbox " setting is inconsistent

joelstein - July 31, 2009 - 21:31
Project:Remember me
Version:6.x-2.1
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:reviewed & tested by the community
Description

The config setting "remember_me_checkbox" defaults to 1 on the "admin/settings/remember_me" form, yet it defaults to 0 in remember_me_insert_checkbox(). Thus, the default value for the remember me checkbox on login forms is unchecked if you never actually submit the settings form.

The attached patch solves this by setting the default value to 1 in remember_me_insert_checkbox().

AttachmentSize
remember_me.inc_.patch427 bytes

#1

joelstein - July 31, 2009 - 21:32
Title:Default config settings are not consistent» Default "remember_me_checkbox " setting is inconsistent

#2

fp - September 6, 2009 - 00:50
Status:active» reviewed & tested by the community

Makes sense. Whether or not it should be checked by default is debatable though.

#3

joelstein - September 7, 2009 - 15:00

I'm fine with either unchecked by default, or checked by default. Just as long as the defaults are consistent. :)

 
 

Drupal is a registered trademark of Dries Buytaert.