Frage

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?

War es hilfreich?

Lösung 2

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

Andere Tipps

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.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top