Learn More, Pay Less!
Limited Time Offer!
Open Closed

Three strange bugs #8745


User avatar
0
LiSong created
  • ABP Framework version: v9.0.3
  • UI Type: MVC
  • Database System: SQL Server
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes/no
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

I published the site recently and had my co-workers test, they found three strange bugs that I can't repeat:

this happened when saving a form

2. on register page, we didn't enable google recaptcha, again, I can't repeat this myself.

  1. There is another strange issue: after registration is complete, it immediately redirects to the login page, and it seems that the user's cookie becomes invalid after registration. again, can't repeat it, however, this happened twice on my co-worker's computer.

any suggestions to debug?


4 Answer(s)
  • User Avatar
    0
    EngincanV created
    Support Team .NET Developer

    Hi, unfortunately, I can't help with the first one, because we need more information, it's hard to understand the reason.

    For the second problem, you have option to disable the recaptcha completely or check your credentials. Because we are using Google's Recaptcha and not customizing it.

    Please check your settings.


    For the last one, when you register, yes the user's cookie becomes invalid and expect it to re-login again.

  • User Avatar
    0
    LiSong created

    #2, we didn't enable it, that was the issue, our settings is just like your screenshot; #3, no, we tried many times, normally the cookie won't become invalid and we don't need to re-login, this issue happened randomly

  • User Avatar
    0
    LiSong created

    for the #2, after we enable it, the recaptcha was not stable, I checked the code and found that the recaptcha google js code is on the bottom, this could cause issues if users take action immediately before the js code is loaded, can you tell me how we can move the js code to the head tag?

                <script src="https://www.google.com/recaptcha/api.js?hl=en&render=99999"></script>
                <script>grecaptcha.ready(function(){ grecaptcha.reExecute = function(callback){grecaptcha.execute
    
  • User Avatar
    0
    EngincanV created
    Support Team .NET Developer

    for the #2, after we enable it, the recaptcha was not stable, I checked the code and found that the recaptcha google js code is on the bottom, this could cause issues if users take action immediately before the js code is loaded, can you tell me how we can move the js code to the head tag?

                <script src="https://www.google.com/recaptcha/api.js?hl=en&render=99999"></script> 
                <script>grecaptcha.ready(function(){ grecaptcha.reExecute = function(callback){grecaptcha.execute 
    

    To fix this on your side, you should override the Volo.Abp.Account.Pro.Public.Web/Pages/Account /Login.cshtml (to override it create a Account folder and Index.cshtml file in it, then download the source-code for Account.Pro module and copy-paste the related page as the content and change the relevant part - please note that when you do that in the next releases you will not get updates for this page) and move the related script from the scripts section to the styles section:


    Btw, do you have any suggestions for me to reproduce these problems? Because, I have tested in an already published application and could not reproduce it.

Made with ❤️ on ABP v9.2.0-preview. Updated on February 13, 2025, 10:35