Ejemplo n.º 1
0
        public async Task <IActionResult> ResetPassword(PasswordRecoverForUserDto userInfo)
        {
            var user = await _repo.GetUserByEmail(userInfo.Email);

            if (user == null)
            {
                throw new Exception("Cant find user with that Email");
            }

            var message = new Message(new string[] { "*****@*****.**" }, "Test email", "This is the content from our email.");

            _emailSender.SendEmail(message);



            return(Ok());
        }