mirror of https://github.com/abpframework/abp.git
10 changed files with 16 additions and 96 deletions
@ -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()); |
|||
} |
|||
} |
|||
} |
|||
@ -1,14 +0,0 @@ |
|||
using AutoMapper; |
|||
|
|||
namespace Volo.CmsKit.Admin.Web |
|||
{ |
|||
public class CmsKitAdminWebAutoMapperProfile : Profile |
|||
{ |
|||
public CmsKitAdminWebAutoMapperProfile() |
|||
{ |
|||
/* You can configure your AutoMapper mapping configuration here. |
|||
* Alternatively, you can split your mapping configurations |
|||
* into multiple profile classes for a better organization. */ |
|||
} |
|||
} |
|||
} |
|||
Loading…
Reference in new issue