@model LoginModel @using Nop.Core @using Nop.Core.Domain.Customers @inject IWebHelper webHelper @{ Layout = "_ColumnsOne"; //title NopHtml.AddTitleParts(T("PageTitle.Login").Text); //page class NopHtml.AppendPageCssClassParts("html-login-page"); //register URL with return URL (if specified) var registerUrl = Url.RouteUrl("Register", new { returnUrl = this.Context.Request.Query["returnUrl"] }, webHelper.GetCurrentRequestProtocol()); }

@T("Account.Login.Welcome")

@await Html.PartialAsync("_ExternalAuthentication.Errors")
@await Component.InvokeAsync(typeof(WidgetViewComponent), new { widgetZone = PublicWidgetZones.LoginTop, additionalData = Model })
@if (Model.RegistrationType == UserRegistrationType.Disabled) {
@T("Account.Register")
@T("Account.Register.Result.Disabled")
} else if (Model.CheckoutAsGuest) {
@T("Account.Login.CheckoutAsGuestOrRegister")
@await Component.InvokeAsync(typeof(TopicBlockViewComponent), new { systemName = "CheckoutAsGuestOrRegister" })
} else {
@T("Account.Login.NewCustomer")
@T("Account.Login.NewCustomerText")
}
@T("Account.Login.Unsuccessful")
@T("Account.Login.ReturningCustomer")
@if (Model.UsernamesEnabled) {
} else {
}
@if (Model.DisplayCaptcha) { }
@await Component.InvokeAsync(typeof(ExternalMethodsViewComponent), "ExternalAuthentication")
@await Component.InvokeAsync(typeof(TopicBlockViewComponent), new { systemName = "LoginRegistrationInfo" }) @await Component.InvokeAsync(typeof(WidgetViewComponent), new { widgetZone = PublicWidgetZones.LoginBottom, additionalData = Model })