Esempio n. 1
0
        public void ForgotPassword(string email)
        {
            var citizen = citizensRepository.GetByEmail(email);

            if (citizen != null)
            {
                var newPassword = RandomGenerator.GenerateString(10);
                citizensService.SetPassword(citizen, newPassword);
                emailService.SendPasswordChangeEmailOnForgot(citizen, newPassword);
            }
        }