简体   繁体   English

如何修改do.net core EF 5.0中的“注册用户”方法

[英]How do you modify the "Register User" method in dotnet core EF 5.0

When a new user registers, I need to create a folder etc. I want to find a Controller for this.当一个新用户注册时,我需要创建一个文件夹等。我想为此找到一个 Controller。 Note - I have already inherited from IdentityUser as described in:注意 - 我已经从 IdentityUser 继承,如下所述:

https://learn.microsoft.com/en-us/as.net/core/security/authentication/customize-identity-model?view=as.netcore-5.0 https://learn.microsoft.com/en-us/as.net/core/security/authentication/customize-identity-model?view=as.netcore-5.0

How can I do this in do.net core EF 5.0 rc1?我如何在 do.net 核心 EF 5.0 rc1 中执行此操作?

  1. Find your Register User Method(Usually Controllers>AccountController>Register)找到您的注册用户方法(通常是 Controllers>AccountController>Register)
  2. Modify it修改它

If you selected Individual User Accounts but your project doesn't containg Account controller.You need to add it manually.For razor view.You can Right Click your project> Add > New Scaffold Item and select Identity then check your required pages you want to add.如果您选择了个人用户帐户,但您的项目不包含帐户 controller。您需要手动添加它。对于 razor 视图。您可以右键单击您的项目>添加>新建脚手架项目和 select 身份,然后检查您想要的所需页面添加。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用 EF Core 安全地注册用户 - How do I safely register a user using EF Core 你如何在 static 方法中注入 do.net 核心项目 IConfiguration object? - How do you inject in dotnet core project in static method an IConfiguration object? EF Core 5.0 - 更改“定义查询”映射实体时是否需要生成迁移? - EF Core 5.0 - Do you need to generate a migration when changing a “Defining Query” -mapped entity? 如何在 dotnet 5.0 中使用反射注册所有托管服务 - How to register all Hosted Services with reflection in dotnet 5.0 你如何在dotnet核心中为Nunit测试设置Parallelizable Attribute? - how do you set Parallelizable Attribute in dotnet core for Nunit tests? 如何卸载 EF Core 表? 或者如何删除所有迁移? 或者如何从用户代码调用`dotnet ef database update 0`? - How to uninstall EF Core tables? Or how to remove all migrations ? Or how to call `dotnet ef database update 0` from user code? 如何通过 Next.js 使用 DotNet Core 5.0 身份验证 - How to use DotNet Core 5.0 authentication with Next.js 带有列表的 POST 方法<t> object 与 EF Core 5.0 API</t> - POST method with List<T> object with EF Core 5.0 API 如何在 EF Core 中显示底层 SQL 查询? - How do you show underlying SQL query in EF Core? 如何在 EF Core 的父 object 中分离 object? - How do you detach an object within a parent object in EF Core?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM