feat: 支持手机号为空的临时账号

This commit is contained in:
橙子
2024-10-26 10:21:16 +08:00
parent 254975fcd3
commit 779e84213e
5 changed files with 13 additions and 8 deletions

View File

@@ -272,7 +272,7 @@ 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,string? nick)
public async Task RegisterAsync(string userName, string password, long? phone,string? nick)
{
var user = new UserAggregateRoot(userName, password, phone,nick);
await _userManager.CreateAsync(user);