1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-11 04:43:44 -05:00

reference event changes and cleanup (#823)

This commit is contained in:
Chad Scharf
2020-07-15 12:38:45 -04:00
committed by GitHub
parent a2b46daf59
commit 2742b414fd
5 changed files with 46 additions and 5 deletions

View File

@ -1135,5 +1135,16 @@ namespace Bit.Core.Services
}
}
}
public override async Task<IdentityResult> ConfirmEmailAsync(User user, string token)
{
var result = await base.ConfirmEmailAsync(user, token);
if (result.Succeeded)
{
await _referenceEventService.RaiseEventAsync(
new ReferenceEvent(ReferenceEventType.ConfirmEmailAddress, user));
}
return result;
}
}
}