Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong output for correct selection after wrong selection #9

Closed
AraByte opened this issue Nov 17, 2021 · 5 comments
Closed

Wrong output for correct selection after wrong selection #9

AraByte opened this issue Nov 17, 2021 · 5 comments

Comments

@AraByte
Copy link

AraByte commented Nov 17, 2021

After loading the captcha and choosing a wrong answer, the correct answer after that would throw a wrong output as well.
Check attached video

icon.captcha_edit_0.mp4
@fabianwennink
Copy link
Owner

Hi, sorry for the late response. The issue shown in the video seems very odd, especially because it's on the demo page. It appears as if the back-end is refreshing the data properly when making an incorrect selection, but the image just stays the same. What should happen, is that with every wrong selection, a new image is generated.

  • Which browser and operating system are you using?
  • Are you perhaps using some browser extension or anything else which might enfore aggresive image/assets caching?
  • Does this happen every time, or was this a single occurrence?

@Cage31
Copy link

Cage31 commented Jan 13, 2022

Hi,
i have the same problem. This happen every time on firefox. There is no extension
First time the image is correctly displayed... then the new image is not displayed. Cache problem..

captcha-cache

@Cage31
Copy link

Cage31 commented Jan 13, 2022

A (bad) solution, icon_captcha.js line 249
iconsHolder.style.backgroundImage =url(${options.general.validationPath}?payload=${imageRequestPayload}&t=${Date.now()});

Adding the time in the args transform in a new url, so no cache problem.

I'll be happy if you have a better solution ...

Thanks

@fabianwennink fabianwennink reopened this Jan 13, 2022
@fabianwennink
Copy link
Owner

@Cage31 Thank you for the additional information. I just tried the demo myself with Firefox and it indeed shows the behaviour as described in this issue. I will implement a fix as soon as possible.

fabianwennink added a commit to fabianwennink/IconCaptcha-Widget that referenced this issue Feb 12, 2022
- Fixed the issue where, on certain browsers, the captcha image would be cached, causing any request after the initial image to show an incorrect image (fabianwennink/IconCaptcha-PHP#9).
- Fixed the issue where the captcha would be in an unresponsive state when the initial captcha screen was disabled with the enableInitialMessage setting, and the timeout error (too many incorrect guesses) was reached (fabianwennink/IconCaptcha-PHP#7).
- Bumped version to 3.0.1
- Updated copyright year to 2022
fabianwennink added a commit that referenced this issue Feb 12, 2022
- Version 3.0.1 of the front-end package fixed the following issues: #7 & #9.
- Bumped version to 3.0.1
- Updated copyright year to 2022
@fabianwennink
Copy link
Owner

This issue has been resolved in the latest release (version 3.0.1).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants