更改了少量登录返回的信息

This commit is contained in:
heiye111
2026-05-21 19:11:24 +08:00
parent 50ebb96de9
commit ac264e0c0a
2 changed files with 18 additions and 3 deletions

View File

@@ -223,9 +223,9 @@ namespace WebAppServer1.Chat
pgSql.Add(newUser);
await pgSql.SaveChangesAsync();
logger.LogInformation($"新用户:{newUser.Username}正在进行登录注册操作!密码:{newUser.Nickname}");
await Clients.Client(Context.ConnectionId).SendAsync("RegisterResult", true,"恭喜注册成功!");
await LoginAuthentication(newUser.Username,newUser.PasswordHash);
await Clients.Client(Context.ConnectionId).SendAsync("RegisterResult", true, "恭喜注册成功!");
}
//统计在线人数