Skip to content

Commit f5b380b

Browse files
committed
Refactored.
1 parent 4f9a615 commit f5b380b

File tree

4 files changed

+4
-12
lines changed

4 files changed

+4
-12
lines changed

src/AbpCompanyName.AbpProjectName.Web/Controllers/AccountController.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,7 @@ public ActionResult Login(string userNameOrEmailAddress = "", string returnUrl =
6666

6767
[HttpPost]
6868
[UnitOfWork]
69-
public virtual async Task<JsonResult> Login(LoginViewModel loginModel, string returnUrl = "",
70-
string returnUrlHash = "")
69+
public virtual async Task<JsonResult> Login(LoginViewModel loginModel, string returnUrl = "", string returnUrlHash = "")
7170
{
7271
var loginResult = await GetLoginResultAsync(loginModel.UsernameOrEmailAddress, loginModel.Password, loginModel.TenancyName);
7372

src/AbpCompanyName.AbpProjectName.Web/Startup/Startup.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerF
5252
}
5353
else
5454
{
55-
app.UseStatusCodePagesWithRedirects("~/Error?statusCode={0}");
5655
app.UseExceptionHandler("/Error");
5756
}
5857

src/AbpCompanyName.AbpProjectName.Web/Views/Account/TenantSelection.cshtml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
@using System.Net
2-
@using Microsoft.EntityFrameworkCore.Metadata.Internal
3-
@model AbpCompanyName.AbpProjectName.Web.Models.Account.TenantSelectionViewModel
1+
@model AbpCompanyName.AbpProjectName.Web.Models.Account.TenantSelectionViewModel
42
@{
53
ViewBag.Title = "Select Tenant";
64
ViewBag.DisableTopBar = true;

src/AbpCompanyName.AbpProjectName.Web/Views/Shared/Components/LanguageSelection/LanguageSelectionViewComponent.cs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Linq;
4-
using System.Threading.Tasks;
5-
using Abp.Localization;
1+
using Abp.Localization;
62
using Microsoft.AspNetCore.Mvc;
73

84
namespace AbpCompanyName.AbpProjectName.Web.Views.Shared.Components.LanguageSelection
95
{
10-
public class LanguageSelectionViewComponent: ViewComponent
6+
public class LanguageSelectionViewComponent : ViewComponent
117
{
128
private readonly ILocalizationManager _localizationManager;
139

0 commit comments

Comments
 (0)