We have an error message code which, when an unhandled exception occurs, we send everything by email to our groups. This is great, except when an unhandled exception occurs on the page with the password field, after which it is sent as plain text.
Is there a way to iterate through Request.Form and find out which items are passwords? This is done at a low level, so we cannot look for specific controls.
Naturally, we could check what type of input field, but I'm not sure if this is the cleanest way. Advice?
source
share