1
0
mirror of https://github.com/bitwarden/server synced 2025-12-14 15:23:42 +00:00

back to corehelpers

This commit is contained in:
Kyle Spearrin
2019-06-11 17:17:23 -04:00
parent 6ab2f4ff87
commit ad7c4b89c4
3 changed files with 27 additions and 28 deletions

View File

@@ -250,7 +250,7 @@ namespace Bit.Core.Services
if(_globalSettings.DisableUserRegistration && !string.IsNullOrWhiteSpace(token) && orgUserId.HasValue)
{
tokenValid = CoreHelpers.UserInviteTokenIsValid(_organizationServiceDataProtector, token,
user.Email, orgUserId.Value);
user.Email, orgUserId.Value, _globalSettings);
}
if(_globalSettings.DisableUserRegistration && !tokenValid)