Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Chrome issue with saved passwords - continuous form submit retries

I have web application (JSF - PrimeFaces) that started to have an issue on Google Chrome update 59. On 58 it was fine, and on every other browser it is fine.

What is happening is that when user logs in for the first time, if the user accepts that Chrome save the password, once the user logs out or once the user comes back to this page anytime, Chrome automatically tries to submit the login form with empty password and, upon failure, keeps trying forever.

Am I'm doing something wrong on my form?

I have created a sample app to demonstrate the problem:

https://powerful-badlands-23851.herokuapp.com/test

Steps to reproduce:

  1. using chrome 59, login with "[email protected]" password "test"
  2. When Chrome asks if you want to save the password say YES
  3. now click logout... and you will should see the bug

Thanks

like image 968
qxlab Avatar asked Jul 01 '17 05:07

qxlab


1 Answers

This was actually a bug in PrimeFaces 6 with p:defaultCommand. Since I could not upgrade it, I ended up using this workaround:

$('a.submitSearchButton').click();
return false;
}"/>
like image 50
qxlab Avatar answered Sep 21 '22 13:09

qxlab