1
0
mirror of https://github.com/bitwarden/server.git synced 2025-01-22 21:51:22 +01:00

Set user API key on account creation through SSO auto provision (#1003)

This commit is contained in:
Addison Beck 2020-11-18 10:20:59 -05:00 committed by GitHub
parent 028ad46c47
commit 2e6368d11a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,6 +21,7 @@ using System.Linq;
using System.Security.Claims;
using System.Threading.Tasks;
using Bit.Core.Models.Api;
using Bit.Core.Utilities;
namespace Bit.Sso.Controllers
{
@ -453,7 +454,8 @@ namespace Bit.Sso.Controllers
user = new User
{
Name = name,
Email = email
Email = email,
ApiKey = CoreHelpers.SecureRandomString(30)
};
await _userService.RegisterUserAsync(user);