feat: 支持注册带入昵称
This commit is contained in:
@@ -271,9 +271,9 @@ namespace Yi.Framework.Rbac.Domain.Managers
|
||||
/// <param name="password"></param>
|
||||
/// <param name="phone"></param>
|
||||
/// <returns></returns>
|
||||
public async Task RegisterAsync(string userName, string password, long phone)
|
||||
public async Task RegisterAsync(string userName, string password, long phone,string? nick)
|
||||
{
|
||||
var user = new UserAggregateRoot(userName, password, phone);
|
||||
var user = new UserAggregateRoot(userName, password, phone,nick);
|
||||
await _userManager.CreateAsync(user);
|
||||
await _userManager.SetDefautRoleAsync(user.Id);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user