Should I trim spaces in a password field

后端 未结 8 713
南旧
南旧 2021-01-01 12:17

Just wondering.

We usually trim a user name in various forms in our ASP.Net application, whats the best practices for password fields.

i.e. should we remove

8条回答
  •  不知归路
    2021-01-01 12:36

    Do not trim the spaces, some may be use whitespaces in their password, application should be user-friendly as well as should be provide security, so dont trim the spaces.

提交回复
热议问题