rebranding changes

This commit is contained in:
2025-08-30 18:55:23 +02:00
parent 7b022dae05
commit e57d6b07db
11 changed files with 24 additions and 24 deletions

View File

@@ -52,7 +52,7 @@ public abstract class AuthControllerBase : Controller
if (!authResult.Success && !authResult.TempBan)
{
Logger.LogWarning("Authenticate:INVALID:{id}:{ident}", authResult?.Uid ?? "NOUID", charaIdent);
return Unauthorized("The provided secret key is invalid. Verify your Mare accounts existence and/or recover the secret key.");
return Unauthorized("The provided secret key is invalid. Verify your Namazu accounts existence and/or recover the secret key.");
}
if (!authResult.Success && authResult.TempBan)
{
@@ -69,14 +69,14 @@ public abstract class AuthControllerBase : Controller
}
Logger.LogWarning("Authenticate:UIDBAN:{id}:{ident}", authResult.Uid, charaIdent);
return Unauthorized("Your Mare account is banned from using the service.");
return Unauthorized("Your Namazu account is banned from using the service.");
}
var existingIdent = await _redis.StringGetAsync("UID:" + authResult.Uid);
if (!string.IsNullOrEmpty(existingIdent))
{
Logger.LogWarning("Authenticate:DUPLICATE:{id}:{ident}", authResult.Uid, charaIdent);
return Unauthorized("Already logged in to this Mare account. Reconnect in 60 seconds. If you keep seeing this issue, restart your game.");
return Unauthorized("Already logged in to this Namazu account. Reconnect in 60 seconds. If you keep seeing this issue, restart your game.");
}
Logger.LogInformation("Authenticate:SUCCESS:{id}:{ident}", authResult.Uid, charaIdent);

View File

@@ -49,7 +49,7 @@ public class JwtController : AuthControllerBase
var userAuth = await dbContext.Auth.SingleAsync(u => u.UserUID == uid);
await EnsureBan(uid, userAuth.PrimaryUserUID, ident);
return Unauthorized("Your Mare account is banned.");
return Unauthorized("Your Namazu account is banned.");
}
if (await IsIdentBanned(dbContext, ident))

View File

@@ -147,9 +147,9 @@ public class OAuthController : AuthControllerBase
var mareUser = await dbContext.LodeStoneAuth.Include(u => u.User).SingleOrDefaultAsync(u => u.DiscordId == discordUserId);
if (mareUser == default)
{
Logger.LogDebug("Failed to get Mare user for {session}, DiscordId: {id}", reqId, discordUserId);
Logger.LogDebug("Failed to get Namazu user for {session}, DiscordId: {id}", reqId, discordUserId);
return BadRequest("Could not find a Mare user associated to this Discord account.");
return BadRequest("Could not find a Namazu user associated to this Discord account.");
}
JwtSecurityToken? jwt = null;