[英]Allow special characters for password
In my MVC2 site if a user enters lt/gt signs in a password box an exception is thrown because of "potentially dangerous..". 在我的MVC2站点中,如果用户在密码框中输入lt / gt符号,则会由于“潜在危险..”而引发异常。 ValidateInput(false) on my controller solves it but for something so simple (not html passing) yet needs to be protected what is a better alternative?
我控制器上的ValidateInput(false)解决了这个问题,但是对于一些简单的操作(不是通过html传递)却需要加以保护的是什么更好的替代方法? I've briefly looked at http://wpl.codeplex.com/ but it also seems overkill
我已经简短地看过http://wpl.codeplex.com/,但这似乎也太过分了
Thoughts? 有什么想法吗? Your solution?
您的解决方案?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.