November 2016
Intermediate to advanced
326 pages
6h 1m
English
Now, we will create respective View page for the login. In this View page, we are just showing the following details:
@using System.Collections.Generic @using Microsoft.AspNet.Http @using Microsoft.AspNet.Http.Authentication @using AspNet.Identity.EntityFramework6 @model LoginViewModel @inject SignInManager<ApplicationUser> SignInManager @{ ViewData["Title"] = "Log in"; } <h2>@ViewData["Title"].</h2> <div class="row"> <div class="col-md-8"> <section> <form asp-controller="Account" asp-action="Login" asp-route-returnurl="@ViewData["ReturnUrl"]" method="post" class="form-horizontal" role="form"> <h4>Use a local account to log in.</h4> <hr /> <div asp-validation-summary="ValidationSummary.All" class="text-danger"></div> <div class="form-group"> ...Read now
Unlock full access