Beispiel #1
0
        /// <summary>
        /// Clears all verification key data and saves the <see cref="UserAccount"/>
        /// </summary>
        /// <param name="userAccount"></param>
        /// <returns></returns>
        public async Task ClearVerificationKeyAsync(UserAccount userAccount)
        {
            userAccount.ClearVerification();

            // Update user account
            await _userAccountStore.WriteAsync(userAccount);

            // Emit event
            await _eventService.RaiseSuccessfulUserAccountUpdatedEventAsync(
                userAccount.Id);
        }