• <bdo id='KkFy9'></bdo><ul id='KkFy9'></ul>
    <i id='KkFy9'><tr id='KkFy9'><dt id='KkFy9'><q id='KkFy9'><span id='KkFy9'><b id='KkFy9'><form id='KkFy9'><ins id='KkFy9'></ins><ul id='KkFy9'></ul><sub id='KkFy9'></sub></form><legend id='KkFy9'></legend><bdo id='KkFy9'><pre id='KkFy9'><center id='KkFy9'></center></pre></bdo></b><th id='KkFy9'></th></span></q></dt></tr></i><div id='KkFy9'><tfoot id='KkFy9'></tfoot><dl id='KkFy9'><fieldset id='KkFy9'></fieldset></dl></div>
      <legend id='KkFy9'><style id='KkFy9'><dir id='KkFy9'><q id='KkFy9'></q></dir></style></legend>

      <small id='KkFy9'></small><noframes id='KkFy9'>

      1. <tfoot id='KkFy9'></tfoot>

        asp.net core mvc 密码验证器

        时间:2023-07-10
        • <small id='mk3xd'></small><noframes id='mk3xd'>

          <i id='mk3xd'><tr id='mk3xd'><dt id='mk3xd'><q id='mk3xd'><span id='mk3xd'><b id='mk3xd'><form id='mk3xd'><ins id='mk3xd'></ins><ul id='mk3xd'></ul><sub id='mk3xd'></sub></form><legend id='mk3xd'></legend><bdo id='mk3xd'><pre id='mk3xd'><center id='mk3xd'></center></pre></bdo></b><th id='mk3xd'></th></span></q></dt></tr></i><div id='mk3xd'><tfoot id='mk3xd'></tfoot><dl id='mk3xd'><fieldset id='mk3xd'></fieldset></dl></div>
            <tbody id='mk3xd'></tbody>
        • <tfoot id='mk3xd'></tfoot>
            <bdo id='mk3xd'></bdo><ul id='mk3xd'></ul>

                1. <legend id='mk3xd'><style id='mk3xd'><dir id='mk3xd'><q id='mk3xd'></q></dir></style></legend>
                  本文介绍了asp.net core mvc 密码验证器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  在 asp.net core MVC 中自定义密码验证规则的简单方法是什么?这个问题就像有人在这里遇到的一样 如何在 ASP.Net MVC Identity 2 中更改密码验证? 唯一的区别是我在 Visual Studio 2015 中使用 asp.net CORE MVC(最新版本).我'想删除所有密码验证规则.项目中没有ApplicationUserManager类,也不确定是否可以在Startup.cs文件中自定义UserManager验证规则.

                  What is the easy way to customize password validation rules in asp.net core MVC? The problem is exactly like someone had here How To Change Password Validation in ASP.Net MVC Identity 2? the only difference is that I'm using asp.net CORE MVC (latest build) with Visual Studio 2015. I'd like to remove all password validation rules. There is no ApplicationUserManager class in the project, also I'm not sure if it's possible to customize UserManager validation rules in the Startup.cs file.

                  推荐答案

                  如果你想简单地禁用一些密码限制(RequireLowercase、RequiredLength 等) - 在 Startup 中配置 IdentityOptions.Password,如下所示:

                  If you want simply disable some password restrictions (RequireLowercase, RequiredLength etc) - configure IdentityOptions.Password in Startup, like this:

                  services.Configure<IdentityOptions>(o =>
                  {
                      o.Password.RequiredLength = 12;
                  });
                  

                  如果你想彻底改变密码验证逻辑 - 实现 IPPasswordValidator 并在 Startup 中注册.

                  If you want completely change password validation logic - implement IPasswordValidator and register it in Startup.

                  这篇关于asp.net core mvc 密码验证器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:.net 核心中的 ServicePointManager.DefaultConnectionLimit? 下一篇:如何将外部项目中的控制器和视图包含到 MVC6 中?

                  相关文章

                  <i id='8VMBu'><tr id='8VMBu'><dt id='8VMBu'><q id='8VMBu'><span id='8VMBu'><b id='8VMBu'><form id='8VMBu'><ins id='8VMBu'></ins><ul id='8VMBu'></ul><sub id='8VMBu'></sub></form><legend id='8VMBu'></legend><bdo id='8VMBu'><pre id='8VMBu'><center id='8VMBu'></center></pre></bdo></b><th id='8VMBu'></th></span></q></dt></tr></i><div id='8VMBu'><tfoot id='8VMBu'></tfoot><dl id='8VMBu'><fieldset id='8VMBu'></fieldset></dl></div>
                  1. <legend id='8VMBu'><style id='8VMBu'><dir id='8VMBu'><q id='8VMBu'></q></dir></style></legend>

                    <tfoot id='8VMBu'></tfoot>

                    • <bdo id='8VMBu'></bdo><ul id='8VMBu'></ul>

                    1. <small id='8VMBu'></small><noframes id='8VMBu'>