是否可以使用标准的 ASP.NET 登录控件,但只要求用户输入密码?我正在使用模板,但运行时抱怨;
Login1: LayoutTemplate does not contain an IEditableTextControl with ID UserName for the username.
我目前的想法是添加style="display:none;"看起来很蹩脚的控件。现有项目已经使用 FormsAuthentication,因此计划 B 可能是推出我自己的身份验证方法。
更新
我有一个两步登录过程。第一步:“你是谁?” 第 2 步:“您的密码是什么?”