mirror of
https://github.com/JogmansonReal/Radicade.git
synced 2026-10-27 07:59:03 -07:00
Radicade Public Code
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using RadicadeServer.DB;
|
||||
|
||||
namespace RadicadeServer.Auth;
|
||||
|
||||
public class AuthShared
|
||||
{
|
||||
public static IDbContextFactory<RecDBContext> DbFactory = null!;
|
||||
|
||||
public static Task<bool> IsWhitelisted(string platformId)
|
||||
{
|
||||
|
||||
|
||||
|
||||
if (!SteamWhitelist.Enabled) return Task.FromResult(true);
|
||||
return Task.FromResult(SteamWhitelist.Contains(platformId));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user