mirror of
https://github.com/bitwarden/server.git
synced 2026-02-01 06:33:17 +08:00
25 lines
727 B
C#
25 lines
727 B
C#
|
|
|
|||
|
|
|
|||
|
|
using Bit.Core.Auth.UserFeatures.UserMasterPassword;
|
|||
|
|
using Bit.Core.Auth.UserFeatures.UserMasterPassword.Interfaces;
|
|||
|
|
using Bit.Core.Services;
|
|||
|
|
using Bit.Core.Settings;
|
|||
|
|
using Microsoft.Extensions.DependencyInjection;
|
|||
|
|
|
|||
|
|
namespace Bit.Core.Auth.UserFeatures;
|
|||
|
|
|
|||
|
|
public static class UserServiceCollectionExtensions
|
|||
|
|
{
|
|||
|
|
public static void AddUserServices(this IServiceCollection services, IGlobalSettings globalSettings)
|
|||
|
|
{
|
|||
|
|
services.AddScoped<IUserService, UserService>();
|
|||
|
|
services.AddUserPasswordCommands();
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
private static void AddUserPasswordCommands(this IServiceCollection services)
|
|||
|
|
{
|
|||
|
|
services.AddScoped<ISetInitialMasterPasswordCommand, SetInitialMasterPasswordCommand>();
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
}
|