Reputation: 2843
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?
Upvotes: 0
Views: 311
Reputation: 2843
The issue was that there was a jquery watermark plugin that was setting the value for text-box.
Upvotes: 0
Reputation: 11104
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.
Upvotes: 1