Should I trim spaces in a password field

后端 未结 8 694
南旧
南旧 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条回答
  •  梦毁少年i
    2021-01-01 12:33

    Leave the password as the user entered it.

    You should never change silently a field put by a user, overall a password.

提交回复
热议问题