I'm using the Joomla Registration plugin on a custom registration form and encrypting some of the data prior to storing it in the DB. When the Joomla Registration plugin is active, I can't decrypt the stored data. When I turn it off and enter new data, I can decrypt the new stored info.
A few key pieces:
[list]
This is with CF 3.1RC5.5
This is after an upgrade from 3.1RC5.3 ( This behavior was not present there )
It occurs regardless of the RunOrder, I've tried several combinations
If I turn off Joomla Registration, it works fine
If I turn on Joomla Registration, I can't decrypt
The encryption/decryption works fine on all of my other ChronoForms throughout the site
[/list]
I see that some plugins work on the onsubmit event and make changes to the database. Because of what I assume is happening my question then is: Where might the plugin be changing my encrypted data string and how might I make it stop doing so since it didn't do so in previous CF versions?
A few key pieces:
[list]
[/list]
I see that some plugins work on the onsubmit event and make changes to the database. Because of what I assume is happening my question then is: Where might the plugin be changing my encrypted data string and how might I make it stop doing so since it didn't do so in previous CF versions?
Hi rhgiles,
I don't know of any reason why this should happen off the top of my head.
Where are you encrypting the data? In the OnSubmit Before box? And you are writing it back to the $_POST array with JRequest::setVar()?
And this is not data used in the Regsitration process: name, username, . . . ?
Bob
I don't know of any reason why this should happen off the top of my head.
Where are you encrypting the data? In the OnSubmit Before box? And you are writing it back to the $_POST array with JRequest::setVar()?
And this is not data used in the Regsitration process: name, username, . . . ?
Bob
Yes I'm encrypting in the OnSubmit Before box. I'm not using the $_POST array with JRequest::setVar() method though. I'm manipulating the value of the actual $_POST['some_value'] variable. This method works fine on my other forms though. Is there a difference with this plugin possibly?
Also, I'm not encrypting any of the values that store in the Joomla! users table. Just data that I'm storing in alternate tables. It does store a value in the DB though, I just can't decrypt the data when I create a user through the form while the Joomla Registration plugin is active.
Also, I'm not encrypting any of the values that store in the Joomla! users table. Just data that I'm storing in alternate tables. It does store a value in the DB though, I just can't decrypt the data when I create a user through the form while the Joomla Registration plugin is active.
Hi rhgiles,
I don't think that there should be any difference between using the JRequest and directly changing $_POST. Can you PM mor email me the encrypt/decrypt code you are using. I'm wondering if the encryption is keyed off something that changes in the Registration process - though I am groping in th dark . . .
Bob
I don't think that there should be any difference between using the JRequest and directly changing $_POST. Can you PM mor email me the encrypt/decrypt code you are using. I'm wondering if the encryption is keyed off something that changes in the Registration process - though I am groping in th dark . . .
Bob
This topic is locked and no more replies can be posted.