mirror of
https://github.com/Caraxi/mare.server.git
synced 2025-12-30 21:23:38 +01:00
adjust DTOs, add call to push character data to visible clients
This commit is contained in:
parent
3e00bc4efd
commit
d56923d553
13 changed files with 82 additions and 72 deletions
|
|
@ -45,9 +45,16 @@ namespace MareSynchronosServer.Authentication
|
|||
return AuthenticateResult.Fail("Failed Authorization");
|
||||
}
|
||||
|
||||
user.CharacterIdentification = charNameHeader;
|
||||
_mareDbContext.Users.Update(user);
|
||||
await _mareDbContext.SaveChangesAsync();
|
||||
if (user.CharacterIdentification != charNameHeader)
|
||||
{
|
||||
try
|
||||
{
|
||||
user.CharacterIdentification = charNameHeader;
|
||||
_mareDbContext.Users.Update(user);
|
||||
await _mareDbContext.SaveChangesAsync();
|
||||
}
|
||||
catch (DbUpdateConcurrencyException) { }
|
||||
}
|
||||
|
||||
var claims = new List<Claim> {
|
||||
new Claim(ClaimTypes.Name, user.CharacterIdentification),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue