Forums

security question pain

mapes 16 Jan, 2014
i have rarely been so frustrated trying to get something to work... first it works, then it doesn't. it took me at least 10 hours of keyboard time to finally find the answer, and it seems really unbelievable....
when you fill out the form, the answer must be all lower case! it doesn't matter what case you set the answer to in the load security question event in the form wizard, and since i decided to ask questions that all the answers were names of people, it was a matter of deleting everything several times and starting over, and over, and over before i finally stumbled upon the ugly truth.

i'm so burned
GreyHead 16 Jan, 2014
Answer
Hi Mapes,

You are right :-( I didn't know that it behaved like that - I think I've always used math questions.

The code responsible is at line 28 of /administrator/components/com_chronoforms/form_actions/load_security_question/load_security_question.php
		foreach($answers as $k => $answer){
			$answers[$k] = strtolower($answer);
		}

Ideally the Check Security Questionaction should do the same conversion.

The workaround is probably to add this in a Custom Code action before the Check Security Question action:
<?php
$form->data['chrono_security_answer'] = strtolower($form->data['chrono_security_answer']);
?>

Bob
groovezog 19 Mar, 2014
Bob,
I was having the same problem. Uppercase responses would fail the test.

I just wanted to confirm that your solution is working for me, in case anyone else has the same problem. Thanks.
This topic is locked and no more replies can be posted.