Should the password field be cleared if there’s a connection error?
I have a desktop application which has 3 fields for logging in: Username, Password, and Server URL.
After reading similar questions, I've decided that my application will reset the password field if either the username or password is incorrect. However, I'm not sure if I should clear it for unrelated errors.
Let's say there is some type of connection error. It could be caused by server downtime, firewall issues, or some other issue outside a user's control. If this happens, my program displays a connection error asking them to try again later.
Should I clear the password field if there's an unrelated connection issue?