mirror of https://github.com/abpframework/abp
parent
451923ac76
commit
de7d480af4
@ -1,8 +0,0 @@
|
||||
@page
|
||||
@using Microsoft.AspNetCore.Mvc.Localization
|
||||
@using Volo.Abp.Account.Localization
|
||||
@using Volo.Abp.Account.Web.Pages.Account
|
||||
@model SendSecurityCodeModel
|
||||
@inject IHtmlLocalizer<AccountResource> L
|
||||
<h2>Send security code!</h2>
|
||||
<p>TODO: This page is under construction.</p>
|
||||
@ -1,49 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Identity;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.AspNetCore.Mvc.Rendering;
|
||||
|
||||
namespace Volo.Abp.Account.Web.Pages.Account
|
||||
{
|
||||
public class SendSecurityCodeModel : AccountPageModel
|
||||
{
|
||||
public List<SelectListItem> Providers { get; set; }
|
||||
|
||||
public virtual async Task<IActionResult> OnGetAsync()
|
||||
{
|
||||
var user = await SignInManager.GetTwoFactorAuthenticationUserAsync();
|
||||
if (user == null)
|
||||
{
|
||||
return RedirectToPage("./Login");
|
||||
}
|
||||
|
||||
return Page();
|
||||
|
||||
//CheckCurrentTenant(await SignInManager.GetVerifiedTenantIdAsync());
|
||||
|
||||
//Providers = (await UserManager.GetValidTwoFactorProvidersAsync(user))
|
||||
// .Select(userProvider =>
|
||||
// new SelectListItem
|
||||
// {
|
||||
// Text = userProvider,
|
||||
// Value = userProvider
|
||||
// }).ToList();
|
||||
|
||||
//return View(
|
||||
// new SendSecurityCodeViewModel
|
||||
// {
|
||||
// ReturnUrl = returnUrl,
|
||||
// RememberMe = rememberMe
|
||||
// }
|
||||
//);
|
||||
}
|
||||
|
||||
public virtual Task<IActionResult> OnPostAsync()
|
||||
{
|
||||
return Task.FromResult<IActionResult>(Page());
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in new issue