首页 > 解决方案 > 使用 Secret Manager 工具配置测试帐户以设置密码

问题描述

我已经从本教程中共享的链接下载了该项目:

https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/security/authorization/secure-data/samples/final3

按照文章中提到的步骤为测试帐户(管理员、管理员)设置密码。在 PowerShell 中使用以下命令:

dotnet user-secrets set SeedUserPW Password@123
Successfully saved SeedUserPW = Password@123 to the secret store.

构建项目并运行它。仍然无法使用admin@contoso.com和 PowerShell 中使用的密码登录。

登录错误

标签: asp.netvisual-studio

解决方案


推荐阅读