refactor: move hashing to services

This commit is contained in:
2024-05-29 04:11:04 +03:00
parent 656d7dca0b
commit 6029ea3c2c
2 changed files with 3 additions and 2 deletions

View File

@ -1,11 +1,12 @@
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Mirea.Api.Security.Services;
namespace Mirea.Api.Security;
public static class DependencyInjection
{
public static IServiceCollection AddApplicationServices(this IServiceCollection services, IConfiguration configuration)
public static IServiceCollection AddSecurityServices(this IServiceCollection services, IConfiguration configuration)
{
var saltSize = int.Parse(configuration["SECURITY_SALT_SIZE"]!);
var hashSize = int.Parse(configuration["SECURITY_HASH_SIZE"]!);