From c5ff0b57a12b605a5ae5ae8a92ce7a4e8eaec77a Mon Sep 17 00:00:00 2001 From: Jake Mannens Date: Fri, 29 Sep 2023 16:20:23 +1000 Subject: Separated HBPrincipal into IPrincipal and LocalPrincipal --- Services/UserService.cs | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'Services/UserService.cs') diff --git a/Services/UserService.cs b/Services/UserService.cs index c333c4f..d2abea3 100644 --- a/Services/UserService.cs +++ b/Services/UserService.cs @@ -1,6 +1,4 @@ -using Microsoft.AspNetCore.Cryptography.KeyDerivation; - -namespace HyperBooru.Services; +namespace HyperBooru.Services; public interface IUserService { public bool ShowNsfw { get; set; } @@ -20,13 +18,4 @@ public class UserService : IUserService { public event EventHandler ShowNsfwChanged; private bool showNsfw = false; - - public static string HashPassword(string password) => - Convert.ToBase64String( - KeyDerivation.Pbkdf2( - password, - Array.Empty(), - KeyDerivationPrf.HMACSHA512, - 100_000, - 512 / 8)); } -- cgit v1.3