At the moment if you enter a wrong password it redirects to drupal.org/user and you either have to try again with a password or use the forget password link.

Looking at Netvibes which has a similar login interface, it simply tells the user the password is wrong in the pop up box and provides a link to forgot password without redirecting etc. WOuld anything similar be possible?

Comments

dagomar’s picture

I would like to know the same.

treksler’s picture

this would need ajax login right?
so you actually submit the login in the background and check if it came back with failure and display an error

ps
also as soon as you hit enter, the box should switch to a dimmed version with a spinner
and it should display a message that says "validating log in" or "authenticating" or something like that;)

palmergroup’s picture

irstudio, did you ever end up solving this? i like your idea.

vegeneric’s picture

subscribe

vegeneric’s picture

anyone know if this could be of use here: http://drupal.org/project/ajax_validation ??

it is definitely not an out-of-the-box solution, as it only even claims to work for node forms, and even then it seems to have issues... but someone who speaks javascript might be able to use it as a foundation.

i don't get how the thickbox login module could even be considered for use on a production site given this hole in its functionality.

frjo’s picture

Version: 5.x-1.x-dev » 6.x-1.x-dev

New features are only added to 6-dev.

frjo’s picture

Could someone test out Thickbox user login with http://drupal.org/project/ajax and come up with a way to integrate them?

v8powerage’s picture

I think at the moment only way to have this is to use popups_api (I tested this).

NewZeal’s picture

I can confirm that the Ajax module has a module which integrates with Thickbox and makes the very functionality requested happen.

NewZeal’s picture

Wow, although the Ajax module successfully works with Thickbox, it doesn't work with edit forms. Login and register and add node forms are fine mostly, but with edit forms I found two errors
1: "This content has been modified by another user, changes cannot be saved." While the form saved Ok it wasn't the kind of user experience I wanted.
2: I also found that while the form validated with no problems, when it came to submit I would get an ajax error and everything would lock up. I found this was due to some bad json.

I solved the above two problems as follows:
1: by putting the default created time forward by an hour using form_alter. On submit this value goes to time() anyway so it doesn't matter. it does matter however if you are going to have other people editing the node. In this instance that is not going to be the case.
$form['changed']['#default_value'] = $form['changed']['#default_value'] + 60*60;
2: by adding some code to ajax.js to handle the bad json (parsererror), avoid the alert message and close the window.

   error: function (XMLHttpRequest, textStatus, errorThrown) {
	  if(textStatus=='parsererror') {
	        submitter.val(submitterVal);
                $('.jqmWindow').jqmHide();  // This is a jqModal function
		return true;
	  }
      window.alert(Drupal.t('ajax.module: An unknown error has occurred.'));
      if (window.console) {
        console.log('error', arguments);
      }
      return true;
    },

During the course of my troubleshooting i abandoned Thickbox in favour of jqModal (http://dev.iceburg.net/jquery/jqModal/) because I thought it might be a problem with Thickbox, but they both behaved the same, but I decided to stay with jqModal.

YK85’s picture

@New Zeal - I installed ajax module (and enabled the thickbox support) and thickbox module but when the wrong password is entered it still takes the user to an all white page with the username and password fields at the top left.

www.example.com/user/login/thickbox?destination=user%2Flogin%2Fthickbox%3Fheight%3D230%26width%3D250%26random%3D1268444978748

Can anyone assist?

v8powerage’s picture

There's new module for that: http://drupal.org/project/ajax_register.

YK85’s picture

It looks like that module ajax_register provides a block with the links, and doesn't override links on the page to user/login.
I am needing to have the popup show when the user clicks a link to user/login that I have on the page.tpl.php and not in a block.
I would really appreciate it if anyone can help.

Thanks!

v8powerage’s picture

U may use popups API module then add to login link class="popups-form-reload".

Bilmar’s picture

+1 subscribing

With all the modules added with thickbox mentioned above, i am still getting routed to a user/login/thickbox?destination=user%2Flogin%2Fthickbox%3Fheight%3D230%26width%3D250%26random%3D1268444978748 as per comment in #11

Is there any chance of getting this working with thickbox module?
Last resort, I will look into other modules mentioned above, but it would be awesome to see this functionality available in thickbox =)

Thank you very much in advance!