Add Login Module
This commit is contained in:
@@ -64,9 +64,9 @@ public sealed class RegisterUseCase : IRegisterUseCase
|
||||
IsActive = true,
|
||||
};
|
||||
|
||||
// แนบอัตลักษณ์แบบ Email (เก็บในตารางลูก)
|
||||
user.Identities.Add(new UserIdentity
|
||||
{
|
||||
TenantId = tn.TenantId,
|
||||
Type = IdentityType.Email,
|
||||
Identifier = emailNorm,
|
||||
IsPrimary = true,
|
||||
@@ -76,7 +76,6 @@ public sealed class RegisterUseCase : IRegisterUseCase
|
||||
await _users.AddAsync(user, ct);
|
||||
await _uow.CommitAsync(ct);
|
||||
|
||||
// ไม่ส่ง DisplayName (ปล่อยให้ HR/Presentation สร้าง)
|
||||
return new RegisterResponse(user.Id, string.Empty, emailNorm, tenant.Id);
|
||||
}
|
||||
catch
|
||||
|
||||
Reference in New Issue
Block a user