Пример #1
0
        public async Task <ActionResult> CodeConfirm(string Code)
        {
            var user = await UserManager.FindByNameAsync(User.Identity.Name);

            if (user != null)
            {
                try
                {
                    await _telegramService.AuthConfirmAsync(user.PhoneNumber, TempData["AuthHash"].ToString(), Code);
                }
                catch { }
            }
            return(RedirectToAction("Index", "Home"));
        }