modal login form sends user to the wrong form on login error

MikeyLikesIt - November 4, 2009 - 22:45
Project:Lightbox2
Version:6.x-1.9
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:duplicate
Description

I wanted to use the modal login form feature of lightbox, and got the form to appear by putting this in a block:

<a rel="lightmodal[|width:250px; height:150px;]" href="/user/login/?destination=<?php print $_GET['q']; ?>">Account Login</a> / <a href="/user/register">Create An Account</a>

However, when a user enters the wrong information, the user is sent to /user/login/lightbox2?destination=SITE_PAGE, which is of course not themed. This means that drupal isn't able to pass on the error message about the username and password.

How can we make it so that on an error with processing the login that the user is sent back to /user/login?destination=SITE_PAGE (without the "/lightbox" addition) so that these errors can be properly handled by drupal?

#1

awolfey - November 20, 2009 - 12:39
Status:active» duplicate

Duplicate of #356834: Introduced bug in Lightbox2 login?.

 
 

Drupal is a registered trademark of Dries Buytaert.