Skip to Content Skip to Menu

[SOLVED] CB Captach and partial user creation

10 years 10 months ago - 10 years 9 months ago #238576 by iytworldwide
[SOLVED] CB Captach and partial user creation was created by iytworldwide
Hi Kyle,

I am getting an issue on my production environment because of CB Captcha. During registration, I have enabled CB Captcha. In case user enters a wrong captcha text then he gets proper error validation which is "Invalid Security Code" but now when user tries again with valid captcha text, an error is thrown by system that "email is already registered". I found that partial user creation happened as soon as captcha error came(by partial I mean that user got created where it should not). This is an issue but this issue I am facing only in production(unix env). On my local system(windows), same build(exact copy taken from server build+Db) is working fine. On server I am consistently able to simulate this issue. What can be the issue? I see some logical issue here. It is happening on all browsers.


CB login module is active
CB captcha version:
2.4
CB Captcha's captchaindex.php selected

CB version: 1.9
PHP Version: 5.3.5
Joomla! Version: Joomla! 3.0.4
Web Server: Apache
WebServer to PHP Interface: cgi-fcgi

thanks,
Amit
Last edit: 10 years 9 months ago by krileon.

Please Log in or Create an account to join the conversation.

10 years 10 months ago - 10 years 10 months ago #238580 by iytworldwide
Replied by iytworldwide on topic CB Captach and partial user creation
One more scenario I noticed in addition to original issue

In case user enters a wrong captcha text then he gets proper error validation which is "Invalid Security Code" but now when user tries again with valid captcha text, an error is thrown by system that "Invalid Security Code". Again this results into data inconsistency as on UI it throws error but in db data got created.

My users are facing issue with registration on site as they have to try multiple times and they have to provide different email id to attempt registration.

I tried some debug, I have put an debug on value of beforeResult in cb.tables.php
Code:
$beforeResult = ! $_PLUGINS->is_errors();

this has value "true"(in fact it should have value "false" as captcha entered second time is correct, so validation must pass). kindly provide some inputs. there is no customization made in the code.



thanks,
amit
Attachments:
Last edit: 10 years 10 months ago by iytworldwide.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48477
  • Thanks: 8281
  • Karma: 1443
10 years 10 months ago - 10 years 10 months ago #238595 by krileon
Replied by krileon on topic CB Captach and partial user creation
CB Captcha is deprecated. Install CB AntiSpam and use its Captcha field, which will properly do field validation and stop registration as needed.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
Last edit: 10 years 10 months ago by krileon.

Please Log in or Create an account to join the conversation.

10 years 10 months ago #238601 by iytworldwide
Replied by iytworldwide on topic CB Captach and partial user creation
Thanks Kyle. I will check CB Antispam immediately.

Thanks
Amit Dangwal

Please Log in or Create an account to join the conversation.

10 years 10 months ago #238749 by iytworldwide
Replied by iytworldwide on topic CB Captach and partial user creation
Hi Kyle,

Issue is still simulating even with Antispam plugin. In "chrome" I am getting the same issue consistently simulated. Once again explaining the simulation step performed in order

Stpe 1. I have tried a user registration with 2 times invalid captcha and 3rd time valid captcha text and it says "email already registered", however the email is given randomly unique by me.

Step 2. I tried another user registration in same browser window, with proper valid data including captcha and still it thrown the same error, email is already registered.

On chrome it simulates but not on other browser(IE/FF). As soon as error has come in CB registration process, that seem to be stuck in session/cache/memory and then the error is thrown on every registration. If it is related with cache then it is not correct as I do not have any control on end user's system cache and he will keep on getting this error and a bad user experience. Kindly assist as this is simulating on server only. I tried debugging but not getting any hint as why it is coming only in chrome.

thanks
amit

Please Log in or Create an account to join the conversation.

10 years 10 months ago #238751 by iytworldwide
Replied by iytworldwide on topic CB Captach and partial user creation
Kyle,
As mentioned earlier that I see it as something related with caching behavior as same error is thrown even data is correct. I did more research and found the root cause.

I have cloudflare( www.cloudflare.com ) configured for my domain where I have web application running(CB) on server. If I disable cloudflare then the issue does not simulate, if I keep it enabled then only on this CB Registration error comes of "email already registered"(at moment issue reported is by users failing to register).
This error comes consistently on "Chrome" even across different client machines. I tried IE and FF but they are working fine.

I tried different caching level setting but all in vain. All cache setting gives error. I did not clear cache in cloudflare as this is not a solution as how long I will be clearing up the cache as well as I have no way to know when the problem started. Also I am not sure whether CB has something specific related with caching here which does not work well when Cloudflare is enabled (partial user creation happens in CB) or Cloudflare has something wrong related to resource caching for CB registration(IP, redirect etc) .

I understand it is not a cloudflare forum but the issue is somewhere between CB and Cloudflare and then Chrome.

thanks,
amit

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum