mirror of
https://github.com/Caraxi/mare.server.git
synced 2026-02-15 14:47:42 +01:00
rework authentication
This commit is contained in:
parent
f9d9e2608e
commit
f278c5a762
17 changed files with 137 additions and 401 deletions
|
|
@ -9,7 +9,6 @@ using Microsoft.EntityFrameworkCore;
|
|||
using Discord.WebSocket;
|
||||
using System.Linq;
|
||||
using Prometheus;
|
||||
using MareSynchronosServices.Authentication;
|
||||
using MareSynchronosShared.Models;
|
||||
using MareSynchronosServices.Identity;
|
||||
using MareSynchronosShared.Metrics;
|
||||
|
|
@ -304,9 +303,6 @@ public class MareModule : InteractionModuleBase
|
|||
|
||||
await db.Auth.AddAsync(auth).ConfigureAwait(false);
|
||||
await db.SaveChangesAsync().ConfigureAwait(false);
|
||||
|
||||
var authHandler = scope.ServiceProvider.GetService<SecretKeyAuthenticationHandler>();
|
||||
authHandler.RemoveAuthentication(existingLodestoneAuth.User.UID);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue