refactor: transfer logic
All logic related to token manipulation has been transferred to the AuthService. Also added TOTP 2FA and rethought the logic of logging into the application
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
using Mirea.Api.Endpoint.Common.Services;
|
||||
using Mirea.Api.Security.Common.Domain;
|
||||
using System.IO;
|
||||
using System.Text.Json;
|
||||
using System.Text.Json.Serialization;
|
||||
@ -16,7 +17,8 @@ public class Admin : ISaveSettings
|
||||
public required string Email { get; set; }
|
||||
public required string PasswordHash { get; set; }
|
||||
public required string Salt { get; set; }
|
||||
|
||||
public SecondFactor SecondFactor { get; set; } = SecondFactor.None;
|
||||
public string? Secret { get; set; }
|
||||
|
||||
public void SaveSetting()
|
||||
{
|
||||
|
Reference in New Issue
Block a user