1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-26 12:55:17 +01:00

fix the duplicate email issue (#3891)

Signed-off-by: Cy Okeke <cokeke@bitwarden.com>
This commit is contained in:
cyprain-okeke 2024-03-12 17:08:59 +01:00 committed by GitHub
parent 03217e8f8f
commit 532b70e26c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -338,8 +338,6 @@ public class UserService : UserManager<User>, IUserService, IDisposable
var result = await base.CreateAsync(user, masterPassword); var result = await base.CreateAsync(user, masterPassword);
if (result == IdentityResult.Success) if (result == IdentityResult.Success)
{ {
await _mailService.SendWelcomeEmailAsync(user);
if (!string.IsNullOrEmpty(user.ReferenceData)) if (!string.IsNullOrEmpty(user.ReferenceData))
{ {
var referenceData = JsonConvert.DeserializeObject<Dictionary<string, object>>(user.ReferenceData); var referenceData = JsonConvert.DeserializeObject<Dictionary<string, object>>(user.ReferenceData);