Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi there,

    I am having the same issue that “carlosceia” described.

    “carlosceia” have you found the solutions for this ??

    Can anyone give me hint how can I accomplish it ??

    Thanks in advance

    If you guys want to have this effect, just go into the login.js file and change the following from:

    $( document ).on('submit', '#ajax-login-register-login-dialog form, #login_form', function( event ){
            event.preventDefault();
            $.ajax({
                data: "action=login_submit&" + $(this).serialize(),
                success: function( msg ){
                    if ( msg == 0 ){
                        $('#ajax-login-register-login-dialog').dialog('close');
                    } else {
                        window.location.replace( _ajax_login_settings.redirect );
                    }
                }
            });
        });

    Replace the code above with the following:

    $( document ).on('submit', '#ajax-login-register-login-dialog form, #login_form', function( event ){
            event.preventDefault();
            $(document).find('.ajax-login-register-status-container').slideUp().remove();
            $.ajax({
                data: "action=login_submit&" + $(this).serialize(),
                success: function( msg ){
                    if ( msg == 0 ){
                        //$('#ajax-login-register-login-dialog').dialog('close');
                        $('#ajax-login-register-login-dialog .form-wrapper').prepend('<div class="ajax-login-register-status-container"> \
                            <div class="ajax-login-register-msg-target error" style="display: block;"><div class="error-container">User not found</div></div> \
                        </div>');                   
    
                    } else {
                        window.location.replace( _ajax_login_settings.redirect );
                    }
                }
            });
        });

    Make sure you don’t update the plugin or this code will get overwritten.

    Hi olie480
    I tried to do what you advise. does not work

    “carlosceia” and “bcplteam” have you found the solutions for this ??

    Plugin Author Zane Matthew

    (@zanematthew)

    Hi,

    This is actually easy, as error messages are already logged. I just choose not to display them due security reasons.

    I’ve added this as an enhancement and plan to include it in the next release.

    Plugin Author Zane Matthew

    (@zanematthew)

    I noticed this is actually already displayed. If your looking for specific messages let me know. Detail can be found in the GitHub issue

    Plugin Author Zane Matthew

    (@zanematthew)

    Hi carlosceia,

    Just wanted to let you know that I noticed only registration page provides detailed messages. I’ve reopened the ticket and we plan to have it in version 1.0.6.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘invalid login message’ is closed to new replies.