Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
默认的 ASP.NET 成员身份的更改密码页面如何允许我更改任何人的密码?看起来“更改密码”页面没有使用我可以指定用户 ID 或其他内容的任何参数。看起来它旨在仅更改当前登录用户的密码。或者有没有办法解决它?
默认功能不允许您这样做。您必须提供“旧密码”。
如果您必须提供这种可能性(而不是让用户通过密码答案重置密码),恐怕您必须自己实现它。