amnah / yii2-user

Yii2 user authentication module
MIT License
253 stars 104 forks source link

Unable to verify your data submission. #159

Closed 3dgroup closed 8 years ago

3dgroup commented 8 years ago

Sometimes when i login or logout i get this error "Unable to verify your data submission". i only get it on forms related to this module. I have the advanced app setup both on a different sub-domain and have different cookieValidationKeys. Sometimes i can login fine both other times not. Disabling CsrfValidation works but i am sure this shouldn't be the only way to fix the issue.

amnah commented 8 years ago

Hmm this is definitely a csrf issue, but I'm not sure why it would happen. The module doesn't have any custom code for csrf, it simply uses the built-in ActiveForm class.

Can you reproduce it consistently?

It might be better to ask on the yii2 forums, someone there may have run into this issue before

3dgroup commented 8 years ago

Well I wasn't sure if it was a Yii fault or module fault. The issue is very hit and miss but happens in development and server. Sometimes its fine sometimes it fails. I will post on Yii forum and get back to you.

3dgroup commented 8 years ago

It looks like it was down to CSRF config