mirror of
https://github.com/Caraxi/mare.server.git
synced 2025-12-14 06:34:15 +01:00
add alias to jwt, remove caching from auth, remove db usage from files
This commit is contained in:
parent
2c7ff6f73a
commit
63286127a2
7 changed files with 35 additions and 98 deletions
|
|
@ -14,4 +14,5 @@ public class ControllerBase : Controller
|
|||
|
||||
protected string MareUser => HttpContext.User.Claims.First(f => string.Equals(f.Type, MareClaimTypes.Uid, StringComparison.Ordinal)).Value;
|
||||
protected string Continent => HttpContext.User.Claims.FirstOrDefault(f => string.Equals(f.Type, MareClaimTypes.Continent, StringComparison.Ordinal))?.Value ?? "*";
|
||||
protected bool IsPriority => !string.IsNullOrEmpty(HttpContext.User.Claims.FirstOrDefault(f => string.Equals(f.Type, MareClaimTypes.Alias, StringComparison.Ordinal))?.Value ?? string.Empty);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue