문제

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?

도움이 되었습니까?

해결책 2

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

다른 팁

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top