mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-13 14:04:15 +01:00
add multi chracter key checks
This commit is contained in:
parent
c67add20d6
commit
9daf9b42a2
7 changed files with 35 additions and 16 deletions
|
|
@ -66,7 +66,7 @@ public sealed class TokenProvider : IDisposable, IMediatorSubscriber
|
|||
tokenUri = MareAuth.AuthFullPath(new Uri(_serverManager.CurrentApiUrl
|
||||
.Replace("wss://", "https://", StringComparison.OrdinalIgnoreCase)
|
||||
.Replace("ws://", "http://", StringComparison.OrdinalIgnoreCase)));
|
||||
var secretKey = _serverManager.GetSecretKey()!;
|
||||
var secretKey = _serverManager.GetSecretKey(out _)!;
|
||||
var auth = secretKey.GetHash256();
|
||||
result = await _httpClient.PostAsync(tokenUri, new FormUrlEncodedContent(new[]
|
||||
{
|
||||
|
|
@ -138,7 +138,7 @@ public sealed class TokenProvider : IDisposable, IMediatorSubscriber
|
|||
{
|
||||
jwtIdentifier = new(_serverManager.CurrentApiUrl,
|
||||
_dalamudUtil.GetPlayerNameHashedAsync().GetAwaiter().GetResult(),
|
||||
_serverManager.GetSecretKey()!);
|
||||
_serverManager.GetSecretKey(out _)!);
|
||||
_lastJwtIdentifier = jwtIdentifier;
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue