Error Message Text - Best Practices

前端 未结 12 794
北恋
北恋 2021-01-02 03:22

We are changing some of the text for our old, badly written error messages. What are some resources for best practices on writing good error messages (specifically for Wind

12条回答
  •  伪装坚强ぢ
    2021-01-02 04:23

    For security reasons, don't provide internal system information that the user does not need.
    Trivial example: when failing to login, don't tell the user if the username is wrong or the password is wrong; this will only help the attacker to brute force the system. Instead, just say "Username/Password combination is invalid" or something like that.

提交回复
热议问题