Account layout fix.

pull/441/head
Halil ibrahim Kalkan 7 years ago
parent 7fd6f75eac
commit 3c9c77bf59

@ -2,6 +2,7 @@
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Mvc;
using Volo.Abp.Account.Web.Settings;
using Volo.Abp.Identity;
@ -36,13 +37,8 @@ namespace Volo.Abp.Account.Web.Pages.Account
var user = new IdentityUser(GuidGenerator.Create(), Input.UserName, Input.EmailAddress, CurrentTenant.Id);
var result = await UserManager.CreateAsync(user, Input.Password);
if (!result.Succeeded)
{
throw new NotImplementedException();
}
(await UserManager.CreateAsync(user, Input.Password)).CheckErrors();
await UserManager.SetEmailAsync(user, Input.EmailAddress);
await SignInManager.SignInAsync(user, isPersistent: false);

@ -0,0 +1,8 @@
@using Volo.Abp.AspNetCore.Mvc.UI.Theming
@inject IThemeManager ThemeManager
@{
Layout = ThemeManager.CurrentTheme.GetAccountLayout();
}
<div class="abp-account-container">
@RenderBody()
</div>

@ -1,5 +1,5 @@
@using Volo.Abp.AspNetCore.Mvc.UI.Theming
@inject IThemeManager ThemeManager
@{
Layout = ThemeManager.CurrentTheme.GetAccountLayout();
Layout = "_Layout";
}
Loading…
Cancel
Save