Re: "There was a security error when trying to login" - v1.3.8
Sanji
Don't worry about how the security token is generated. Rather your problem looks to me to be that your form is using the get method for passing information, but Zen Cart is expecting to receive the security token in the $_POST array.
Indeed, I'm not sure that you can pass hidden variables with the get method as they are visibly tagged onto the URL.
Re: "There was a security error when trying to login" - v1.3.8
Thanks Kuroi, I tried both post and get methods, but the result is exactly the same...
sanji
Re: "There was a security error when trying to login" - v1.3.8
This is the way the information is sent for login, with post :
Code:
<form name='form1' action='/index.php?main_page=login&action=process' method='post'>
<input type='hidden' name='email_address' id='login-email-address' value='[email protected]' />
<input type='hidden' name='password' id='login-password' value='12345678' />
<input type='hidden' name='securityToken' id='securityToken' value='xxxxxxxx49eb4cdfd90ba277c409aa22' />
<input type='submit' value='Place Order' />
<input type='button' value='Cancel Order' onclick='window.close()'>
</form>
Does that look OK? I still get that Security Error...
sanji