Summary

When the "Remember Me" plugin is disabled in the back-end, the offline login page still shows the respective "Remember Me" checkbox.

Instead, the checkbox needs to be removed when the plugin is disabled. Here is a patch for /templates/system/offline.php for that (two lines inserted):

--------------------------
@@ -45,10 +45,12 @@
<label for="passwd"><?php echo JText::_('Password') ?></label><br />
<input type="password" name="passwd" class="inputbox" size="18" alt="<?php echo JText::_('Password') ?>" id="passwd" />
</p>
+ <?php if (JPluginHelper::isEnabled('system', 'remember')): ?>
<p id="form-login-remember">
<label for="remember"><?php echo JText::_('Remember me') ?></label>
<input type="checkbox" name="remember" class="inputbox" value="yes" alt="<?php echo JText::_('Remember me') ?>" id="remember" />
</p>
+ <?php endif; ?>
<input type="submit" name="Submit" class="button" value="<?php echo JText::_('LOGIN') ?>" />
</fieldset>
<input type="hidden" name="option" value="com_user" />
---------------------------

It affects Joomla 2.5 and current github trunk as well. I'm going to submit bug report(s) for those too.
Opened On:
9 Aug 2013, 22:56 by Jonny Roger
Closed On:
10 Aug 2013, 4:20
Status:
Closed

Filed Under

  • Administrator

Responses

Posted on 9 Aug 2013, 23:07 by Jonny Roger
Submitted following bug report for the current Joomla versions: http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=31716
Posted on 10 Aug 2013, 4:20 by Brian Teeman
I am closing this Issue here as Joomla 1.5 is no longer being maintained
Posted on 10 Aug 2013, 10:22 by Jonny Roger
Just to clarify, the following two lines were inserted into the file - before and after the "form-login-remember" checkbox respectively:

<?php if (JPluginHelper::isEnabled('system', 'remember')): ?>

and

<?php endif; ?>