1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-04 09:32:48 -05:00

generate signin token for enterprise portal (#728)

This commit is contained in:
Kyle Spearrin
2020-05-12 15:36:33 -04:00
committed by GitHub
parent 00af142d63
commit 10a6e12d09
4 changed files with 30 additions and 3 deletions

View File

@ -1020,6 +1020,13 @@ namespace Bit.Core.Services
return await CanAccessPremium(user);
}
public async Task<string> GenerateEnterprisePortalSignInTokenAsync(User user)
{
var token = await GenerateUserTokenAsync(user, Options.Tokens.PasswordResetTokenProvider,
"EnterprisePortalTokenSignIn");
return token;
}
private async Task<IdentityResult> UpdatePasswordHash(User user, string newPassword,
bool validatePassword = true, bool refreshStamp = true)
{