Support » Plugin: Social Connect » [Plugin: Social Connect] Failing Login redirection

Viewing 1 replies (of 1 total)
  • Whoooo it’s nice to ask and answer my own questions 😉
    It’s all about javascript… I’ve just added an additional condition to connect.js (line 109) and now everything seems to work!

    so, replace

    if(!jQuery('#loginform').length) {
    		if(jQuery('#registerform').length) {
    			// if register form exists, just use that
    			form_id = '#registerform';
    		} else {

    with

    if(!jQuery('#loginform').length) {
    		if(jQuery('[id^=loginform]').length) {
    			// Theme My Login widgets
    			form_id = '#' + jQuery('[id^=loginform]').eq(0).attr('id');
    		} else if(jQuery('#registerform').length) {
    			// if register form exists, just use that
    			form_id = '#registerform';
    		} else {

    Login With Ajax still doesn’t work, though.
    Adding another condition in javascript (to submit #LoginWithAjax_Form) and checking submission with function sc_ajax_login (in social connect.php) will simply make it throw out an “empty username / password” error.

    I’ve found a quick and dirty workaround, by using an hidden Theme My Login widget where it isn’t already present, so the Social Connect flow could go through that instead of the LWA form.

    However, any hint would be highly appreciated.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Social Connect] Failing Login redirection’ is closed to new replies.