mirror of
https://github.com/bitwarden/server.git
synced 2025-06-30 07:36:14 -05:00
[SSO] New user provision flow (#945)
* Initial commit of accept user during set password flow * changed new org user from accepted to invited // moved another check to token accept function * Revised some white space // Moved business logic to UserService * Fixed UserServiceTest * Removed some white-space * Removed more white-space * Final white-space issues
This commit is contained in:
@ -41,6 +41,7 @@ namespace Bit.Core.Test.Services
|
||||
private readonly IReferenceEventService _referenceEventService;
|
||||
private readonly CurrentContext _currentContext;
|
||||
private readonly GlobalSettings _globalSettings;
|
||||
private readonly IOrganizationService _organizationService;
|
||||
|
||||
public UserServiceTests()
|
||||
{
|
||||
@ -69,6 +70,7 @@ namespace Bit.Core.Test.Services
|
||||
_referenceEventService = Substitute.For<IReferenceEventService>();
|
||||
_currentContext = new CurrentContext();
|
||||
_globalSettings = new GlobalSettings();
|
||||
_organizationService = Substitute.For<IOrganizationService>();
|
||||
|
||||
_sut = new UserService(
|
||||
_userRepository,
|
||||
@ -95,7 +97,8 @@ namespace Bit.Core.Test.Services
|
||||
_policyRepository,
|
||||
_referenceEventService,
|
||||
_currentContext,
|
||||
_globalSettings
|
||||
_globalSettings,
|
||||
_organizationService
|
||||
);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user