Exemple #1
0
        public async Task ActivateAccount(string activationToken, string password)
        {
            MemberActivationToken token = await _memberRepository.GetMemberActivationToken(activationToken);

            if (token == null)
            {
                return;
            }

            await UpdatePassword(token.MemberId, password);

            await _memberRepository.DeleteActivationToken(token.MemberId);

            await _memberRepository.ActivateMember(token.MemberId);

            await SendNewMemberEmails(token.MemberId);
        }