Question

I have a password changer web form in which the admin can just enter a password to be saved in the configuration.

The problem is that when the input text box is left blank, on submit, code behind file receives the password text-box value as "Password" without quotes.

This causes the password to be changed even though it was not intended.

How to fix this?

Était-ce utile?

La solution 2

The issue was that there was a jquery watermark plugin that was setting the value for text-box.

Autres conseils

There is two possiblities

1. Make sure you not set value/text of your password box

2. Make autocomplete off your password box field by adding autocomplete="off" attribute.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top