Exemple #1
0
        public IHttpActionResult Generate(GenerateRequest request)
        {
            var email  = request.Email;
            var result = GenerateUserResetPassword.Generate(email);

            return(Ok(new
            {
                success = result.Status == WebGenerateUserResetPasswordStatus.Success || result.Status == WebGenerateUserResetPasswordStatus.UserNotFound
            }));
        }
        public IWebGenerateUserResetPasswordResult Regenerate(string token)
        {
            var userResetPassword = FindUserResetPassword.Find(token);

            return(GenerateUserResetPassword.Generate(userResetPassword?.Username ?? string.Empty));
        }