Base solution for your next web application
Open Closed

login page stay in busy mode #7682


User avatar
0
j.chow created

when i disable reCAPTCHA in login page and login fail. the login page stay in busy mode.


8 Answer(s)
  • User Avatar
    0
    j.chow created

    Hi Maliming,

    thanks for your reply.

    I think it is because reCaptcha is disabled in the settings

  • User Avatar
    0
    maliming created
    Support Team

    Excuse me, I am wrong, I will continue to check it.

  • User Avatar
    0
    maliming created
    Support Team

    hi @j.chow

    I can't reproduce the error you encountered. What is the version of your Zero?

    Can you see if the script for your login page is loaded successfully?

  • User Avatar
    0
    j.chow created

    Hi maliming,

    i think the login page is loaded successfully. is it because in china?

  • User Avatar
    0
    maliming created
    Support Team

    If you are in mainland China, you can't use google under normal circumstances:

    https://www.google.com/recaptcha/api.js?hl=en

  • User Avatar
    0
    j.chow created

    hi maliming,

    how can i change the url to the others.

    on the other hand, how can I add judgment conditions to this code?

  • User Avatar
    0
    maliming created
    Support Team

    @j.chow

    Please follow this issue https://github.com/aspnetzero/aspnet-zero-core/issues/2669

  • User Avatar
    1
    j.chow created

    login.js chaged to bellow

    ref:https://github.com/aspnetzero/aspnet-zero-core/pull/2670

            abp.ui.setBusy(
                null,
                abp.ajax({
                    contentType: app.consts.contentTypes.formUrlencoded,
                    url: $loginForm.attr('action'),
                    data: $loginForm.serialize()
                }).fail(function () {
                    var isUseCaptcha = abp.setting.getBoolean("App.UserManagement.UseCaptchaOnLogin");
                    
                    if (isUseCaptcha) {
                        grecaptcha.reset();
                    }
                    //grecaptcha.reset();
                })
            );