committed by
Steve Smith
136 changed files with 342 additions and 335 deletions
@ -1,55 +1,56 @@ |
|||
@using System.Collections.Generic |
|||
@using Microsoft.AspNetCore.Http |
|||
@using Microsoft.AspNetCore.Http.Authentication |
|||
@using Microsoft.eShopWeb.Web.ViewModels.Account |
|||
@model RegisterViewModel |
|||
@{ |
|||
ViewData["Title"] = "Register"; |
|||
} |
|||
<div class="brand-header-block"> |
|||
<ul class="container"> |
|||
<li class="active" style="margin-right: 65px;">Already have an account? <a asp-action="Signin">LOGIN</a></li> |
|||
</ul> |
|||
</div> |
|||
<div class="container account-login-container"> |
|||
<div class="row"> |
|||
<div class="col-md-12"> |
|||
<section> |
|||
<form asp-controller="Account" asp-route-returnurl="@ViewData["ReturnUrl"]" method="post" class="form-horizontal"> |
|||
<div asp-validation-summary="All" class="text-danger"></div> |
|||
<div class="form-group"> |
|||
<label asp-for="Email" class="col-md-2 control-label"></label> |
|||
<div class="col-md-10"> |
|||
<input asp-for="Email" class="form-control" /> |
|||
<span asp-validation-for="Email" class="text-danger"></span> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label asp-for="Password" class="col-md-2 control-label"></label> |
|||
<div class="col-md-10"> |
|||
<input asp-for="Password" class="form-control" /> |
|||
<span asp-validation-for="Password" class="text-danger"></span> |
|||
</div> |
|||
<div class="brand-header-block"> |
|||
<ul class="container"> |
|||
<li class="active" style="margin-right: 65px;">Already have an account? <a asp-action="Signin">LOGIN</a></li> |
|||
</ul> |
|||
</div> |
|||
<div class="container account-login-container"> |
|||
<div class="row"> |
|||
<div class="col-md-12"> |
|||
<section> |
|||
<form asp-controller="Account" asp-route-returnurl="@ViewData["ReturnUrl"]" method="post" class="form-horizontal"> |
|||
<div asp-validation-summary="All" class="text-danger"></div> |
|||
<div class="form-group"> |
|||
<label asp-for="Email" class="col-md-2 control-label"></label> |
|||
<div class="col-md-10"> |
|||
<input asp-for="Email" class="form-control" /> |
|||
<span asp-validation-for="Email" class="text-danger"></span> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label asp-for="ConfirmPassword" class="col-md-2 control-label"></label> |
|||
<div class="col-md-10"> |
|||
<input asp-for="ConfirmPassword" class="form-control" /> |
|||
<span asp-validation-for="ConfirmPassword" class="text-danger"></span> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label asp-for="Password" class="col-md-2 control-label"></label> |
|||
<div class="col-md-10"> |
|||
<input asp-for="Password" class="form-control" /> |
|||
<span asp-validation-for="Password" class="text-danger"></span> |
|||
</div> |
|||
<div class="form-group"> |
|||
<button type="submit" class="btn btn-default btn-brand btn-brand-big"> REGISTER </button> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label asp-for="ConfirmPassword" class="col-md-2 control-label"></label> |
|||
<div class="col-md-10"> |
|||
<input asp-for="ConfirmPassword" class="form-control" /> |
|||
<span asp-validation-for="ConfirmPassword" class="text-danger"></span> |
|||
</div> |
|||
<p> |
|||
Note that for demo purposes you don't need to register! Use the credentials shown below the |
|||
<a asp-action="signin">login screen</a>. |
|||
</p> |
|||
</form> |
|||
</section> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<button type="submit" class="btn btn-default btn-brand btn-brand-big"> REGISTER </button> |
|||
</div> |
|||
<p> |
|||
Note that for demo purposes you don't need to register! Use the credentials shown below the |
|||
<a asp-action="signin">login screen</a>. |
|||
</p> |
|||
</form> |
|||
</section> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
|
|||
@section Scripts { |
|||
@{ await Html.RenderPartialAsync("_ValidationScriptsPartial"); } |
|||
} |
|||
@section Scripts { |
|||
@{ await Html.RenderPartialAsync("_ValidationScriptsPartial"); } |
|||
} |
|||
|
|||
@ -1,60 +1,60 @@ |
|||
@using Microsoft.eShopWeb.ViewModels.Account |
|||
@using Microsoft.eShopWeb.Web.ViewModels.Account |
|||
@model LoginViewModel |
|||
@{ |
|||
ViewData["Title"] = "Log in"; |
|||
} |
|||
<div class="brand-header-block"> |
|||
<ul class="container"> |
|||
@*<li><a asp-area="" asp-controller="Account" asp-action="Register">REGISTER</a></li>*@ |
|||
<li class="active" style="margin-right: 65px;">LOGIN</li> |
|||
</ul> |
|||
</div> |
|||
<div class="container account-login-container"> |
|||
<div class="row"> |
|||
<div class="col-md-12"> |
|||
<section> |
|||
<form asp-controller="Account" asp-action="SignIn" asp-route-returnurl="@ViewData["ReturnUrl"]" method="post" class="form-horizontal"> |
|||
<h4>ARE YOU REGISTERED?</h4> |
|||
<div asp-validation-summary="All" class="text-danger"></div> |
|||
<div class="form-group"> |
|||
<label asp-for="Email" class="control-label form-label"></label> |
|||
<input asp-for="Email" class="form-control form-input form-input-center" /> |
|||
<span asp-validation-for="Email" class="text-danger"></span> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label asp-for="Password" class="control-label form-label"></label> |
|||
<input asp-for="Password" class="form-control form-input form-input-center" /> |
|||
<span asp-validation-for="Password" class="text-danger"></span> |
|||
</div> |
|||
<div class="form-group"> |
|||
<div class="checkbox"> |
|||
<label asp-for="RememberMe"> |
|||
<input asp-for="RememberMe" /> |
|||
@Html.DisplayNameFor(m => m.RememberMe) |
|||
</label> |
|||
</div> |
|||
<div class="brand-header-block"> |
|||
<ul class="container"> |
|||
@*<li><a asp-area="" asp-controller="Account" asp-action="Register">REGISTER</a></li>*@ |
|||
<li class="active" style="margin-right: 65px;">LOGIN</li> |
|||
</ul> |
|||
</div> |
|||
<div class="container account-login-container"> |
|||
<div class="row"> |
|||
<div class="col-md-12"> |
|||
<section> |
|||
<form asp-controller="Account" asp-action="SignIn" asp-route-returnurl="@ViewData["ReturnUrl"]" method="post" class="form-horizontal"> |
|||
<h4>ARE YOU REGISTERED?</h4> |
|||
<div asp-validation-summary="All" class="text-danger"></div> |
|||
<div class="form-group"> |
|||
<label asp-for="Email" class="control-label form-label"></label> |
|||
<input asp-for="Email" class="form-control form-input form-input-center" /> |
|||
<span asp-validation-for="Email" class="text-danger"></span> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label asp-for="Password" class="control-label form-label"></label> |
|||
<input asp-for="Password" class="form-control form-input form-input-center" /> |
|||
<span asp-validation-for="Password" class="text-danger"></span> |
|||
</div> |
|||
<div class="form-group"> |
|||
<div class="checkbox"> |
|||
<label asp-for="RememberMe"> |
|||
<input asp-for="RememberMe" /> |
|||
@Html.DisplayNameFor(m => m.RememberMe) |
|||
</label> |
|||
</div> |
|||
<div class="form-group"> |
|||
<button type="submit" class="btn btn-default btn-brand btn-brand-big"> LOG IN </button> |
|||
</div> |
|||
<p> |
|||
<a asp-action="Register" asp-route-returnurl="@ViewData["ReturnUrl"]" class="text">Register as a new user?</a> |
|||
</p> |
|||
<p> |
|||
Note that for demo purposes you don't need to register and can login with these credentials: |
|||
</p> |
|||
<p> |
|||
User: <b>demouser@microsoft.com</b> |
|||
</p> |
|||
<p> |
|||
Password: <b>Pass@word1</b> |
|||
</p> |
|||
</form> |
|||
</section> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<button type="submit" class="btn btn-default btn-brand btn-brand-big"> LOG IN </button> |
|||
</div> |
|||
<p> |
|||
<a asp-action="Register" asp-route-returnurl="@ViewData["ReturnUrl"]" class="text">Register as a new user?</a> |
|||
</p> |
|||
<p> |
|||
Note that for demo purposes you don't need to register and can login with these credentials: |
|||
</p> |
|||
<p> |
|||
User: <b>demouser@microsoft.com</b> |
|||
</p> |
|||
<p> |
|||
Password: <b>Pass@word1</b> |
|||
</p> |
|||
</form> |
|||
</section> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
|
|||
@section Scripts { |
|||
@{ await Html.RenderPartialAsync("_ValidationScriptsPartial"); } |
|||
} |
|||
@section Scripts { |
|||
@{ await Html.RenderPartialAsync("_ValidationScriptsPartial"); } |
|||
} |
|||
|
|||
@ -1 +1 @@ |
|||
@using Microsoft.eShopWeb.Views.Manage |
|||
@using Microsoft.eShopWeb.Web.Views.Manage |
|||
@ -1,7 +1,7 @@ |
|||
@using Microsoft.eShopWeb |
|||
@using Microsoft.eShopWeb.ViewModels |
|||
@using Microsoft.eShopWeb.ViewModels.Account |
|||
@using Microsoft.eShopWeb.ViewModels.Manage |
|||
@using Microsoft.eShopWeb.Web |
|||
@using Microsoft.eShopWeb.Web.ViewModels |
|||
@using Microsoft.eShopWeb.Web.ViewModels.Account |
|||
@using Microsoft.eShopWeb.Web.ViewModels.Manage |
|||
@using Microsoft.AspNetCore.Identity |
|||
@using Infrastructure.Identity |
|||
@using Microsoft.eShopWeb.Infrastructure.Identity |
|||
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers |
|||
Some files were not shown because too many files changed in this diff
Loading…
Reference in new issue