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?

Was it helpful?

Solution 2

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

OTHER TIPS

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top