mirror of
https://github.com/Empostor/Empostor.git
synced 2026-10-19 15:51:39 +00:00
both revert + docker fix
This commit is contained in:
1 parent
edfff9ae19
commit
a2daa01993
4 files changed
+13
-1
No files matched your search
@@ -25,6 +25,7 @@ WORKDIR /source
|
||||
COPY src/Empostor.Server/Empostor.Server.csproj ./src/Empostor.Server/
|
||||
COPY src/Empostor.Api/Empostor.Api.csproj ./src/Empostor.Api/
|
||||
COPY src/Empostor.Api.Innersloth.Generator/Empostor.Api.Innersloth.Generator.csproj ./src/Empostor.Api.Innersloth.Generator/
|
||||
COPY src/Empostor.Plugins.PlayerLog/Empostor.Plugins.PlayerLog.csproj ./src/Empostor.Plugins.PlayerLog/
|
||||
COPY src/NextFast.Hazel-New/Next.Hazel/Next.Hazel.csproj ./src/NextFast.Hazel-New/Next.Hazel/
|
||||
COPY src/NextFast.Hazel-New/Next.Hazel.Abstractions/Next.Hazel.Abstractions.csproj ./src/NextFast.Hazel-New/Next.Hazel.Abstractions/
|
||||
COPY src/Directory.Build.props ./src/
|
||||
|
||||
@@ -3,6 +3,7 @@ namespace Empostor.Api.Config;
|
||||
public enum AuthApiMode
|
||||
{
|
||||
Innersloth,
|
||||
Both,
|
||||
Ume,
|
||||
}
|
||||
|
||||
|
||||
@@ -221,6 +221,16 @@ public sealed class TokenController : ControllerBase
|
||||
friendCode = await FetchFromUmeAsync(eosToken, productUserId);
|
||||
}
|
||||
|
||||
if (string.IsNullOrEmpty(friendCode) && mode == AuthApiMode.Both)
|
||||
{
|
||||
_logger.LogDebug("TokenController Both mode: trying Ume first, then Innersloth");
|
||||
friendCode = await FetchFromUmeAsync(eosToken, productUserId);
|
||||
if (string.IsNullOrEmpty(friendCode))
|
||||
{
|
||||
friendCode = await FetchFromInnerslothAsync(eosToken, productUserId);
|
||||
}
|
||||
}
|
||||
|
||||
if (string.IsNullOrEmpty(friendCode) && mode == AuthApiMode.Innersloth)
|
||||
{
|
||||
friendCode = await FetchFromInnerslothAsync(eosToken, productUserId);
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
"GameRecorderPath": ""
|
||||
},
|
||||
"AuthApi": {
|
||||
"Mode": "Ume",
|
||||
"Mode": "Both",
|
||||
"UmeApiBaseUrl": "https://auverify.hayashiume.top",
|
||||
"UmeApiKey": "sk-empostor-globalapikey"
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user