Jul 05, 2009, 09:11 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
Search via SMF or Google: modx forums all of modxcms.com web
  MODxCMS.com   Forums   Help Login Register  
News:Donate to MODx: Donations
Pages: [1]   Go Down
  Print  
Author Topic: bug fix: vericode was not working w/ multiple eform instances  (Read 506 times)
0 Members and 1 Guest are viewing this topic.
netProphET
Coding Team
*
Posts: 372


Time is Art


WWW
« on: Dec 08, 2008, 04:38 PM »

I was using two eForms on one page, both with vericode.
I was unable to submit one of them due to "Invalid verification code", even though it was being entered incorrectly.
eForm was only storing the vericode in one session variable.
I have added a test to see if the global $form_id is set, and if it is, it makes that session variable into an array.
I've attached the full modified eform.inc.php file as well as a .diff file.

* eform_multi_vericode_fix.zip (13.19 KB - downloaded 51 times.)
Logged
TobyL
Moderator
*
Posts: 1,006



« Reply #1 on: Dec 08, 2008, 07:12 PM »

Thanks for that, I'll have a look at the code and see if it can be integrated into the next version.
Logged

Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP

Copyright © 2005-2008 MODxCMS, All rights reserved. Contact Us
Styles by ziworks.com

Powered by SMF | SMF © 2006-2008, Simple Machines LLC

Valid XHTML 1.0! Valid CSS!