diff --git a/src/MusicStore/Views/Account/ExternalLoginConfirmation.cshtml b/src/MusicStore/Views/Account/ExternalLoginConfirmation.cshtml deleted file mode 100644 index ebdf0b0159..0000000000 --- a/src/MusicStore/Views/Account/ExternalLoginConfirmation.cshtml +++ /dev/null @@ -1,39 +0,0 @@ -@model MusicStore.Models.ExternalLoginConfirmationViewModel -@{ - ViewBag.Title = "Register"; -} -

@ViewBag.Title.

-

Associate your @ViewBag.LoginProvider account.

- -@using (Html.BeginForm("ExternalLoginConfirmation", "Account", new { ReturnUrl = ViewBag.ReturnUrl }, FormMethod.Post, new { @class = "form-horizontal", role = "form" })) -{ - @Html.AntiForgeryToken() - -

Association Form

-
- @Html.ValidationSummary(true) -

- You've successfully authenticated with @ViewBag.LoginProvider. - Please enter a user name for this site below and click the Register button to finish - logging in. -

-
- @Html.LabelFor(m => m.UserName, new { @class = "col-md-2 control-label" }) -
- @Html.TextBoxFor(m => m.UserName, new { @class = "form-control" }) - @Html.ValidationMessageFor(m => m.UserName) -
-
-
-
- -
-
-} - -@section Scripts { - @*Bug : Script helpers are out of scope for alpha*@ - @*@Scripts.Render("~/bundles/jqueryval")*@ - - -} diff --git a/src/MusicStore/Views/Account/ExternalLoginFailure.cshtml b/src/MusicStore/Views/Account/ExternalLoginFailure.cshtml deleted file mode 100644 index c3d56e01d5..0000000000 --- a/src/MusicStore/Views/Account/ExternalLoginFailure.cshtml +++ /dev/null @@ -1,8 +0,0 @@ -@{ - //Bug: Need a way to specify the layout page in a single place - Layout = "/Views/Shared/_Layout.cshtml"; - ViewBag.Title = "Login Failure"; -} - -

@ViewBag.Title.

-

Unsuccessful login with service.

diff --git a/src/MusicStore/Views/Account/Manage.cshtml b/src/MusicStore/Views/Account/Manage.cshtml index 4e576dcc66..f2a491ccbd 100644 --- a/src/MusicStore/Views/Account/Manage.cshtml +++ b/src/MusicStore/Views/Account/Manage.cshtml @@ -1,6 +1,4 @@ -@using MusicStore.Models; -@using Microsoft.AspNet.Identity; -@{ +@{ //Bug: Need a way to specify the layout page in a single place Layout = "/Views/Shared/_Layout.cshtml"; ViewBag.Title = "Manage Account"; @@ -11,14 +9,7 @@
- @if (ViewBag.HasLocalPassword) - { - await Html.PartialAsync("_ChangePasswordPartial"); - } - else - { - await Html.PartialAsync("_SetPasswordPartial"); - } + @await Html.PartialAsync("_ChangePasswordPartial")
diff --git a/src/MusicStore/Views/Account/Register.cshtml b/src/MusicStore/Views/Account/Register.cshtml index 244f2b6cb7..03ef461d0c 100644 --- a/src/MusicStore/Views/Account/Register.cshtml +++ b/src/MusicStore/Views/Account/Register.cshtml @@ -31,7 +31,7 @@ @*@Html.LabelFor(m => m.ConfirmPassword, new { @class = "col-md-2 control-label" })*@
- @*@Html.PasswordFor(m => m.ConfirmPassword, new { @class = "form-control" })*@ + @Html.PasswordFor(m => m.ConfirmPassword, new { @class = "form-control" })
diff --git a/src/MusicStore/Views/Account/_ChangePasswordPartial.cshtml b/src/MusicStore/Views/Account/_ChangePasswordPartial.cshtml index c48462a6ef..2780702609 100644 --- a/src/MusicStore/Views/Account/_ChangePasswordPartial.cshtml +++ b/src/MusicStore/Views/Account/_ChangePasswordPartial.cshtml @@ -1,14 +1,15 @@ -@using Microsoft.AspNet.Identity +@*This using statement to MusicStore.Controllers should go away once we have the GetUserName() extension on IIdentity in some Identity package*@ +@using MusicStore.Controllers @model MusicStore.Models.ManageUserViewModel -

You're logged in as @Context.HttpContext.User.Identity.Name.

+

You're logged in as @Context.HttpContext.User.Identity.GetUserName().

@using (Html.BeginForm("Manage", "Account", FormMethod.Post, new { @class = "form-horizontal", role = "form" })) { @*@Html.AntiForgeryToken()*@

Change Password Form


- @Html.ValidationSummary() + @*@Html.ValidationSummary()*@
@*@Html.LabelFor(m => m.OldPassword, new { @class = "col-md-2 control-label" })*@ diff --git a/src/MusicStore/Views/Account/_ExternalLoginsListPartial.cshtml b/src/MusicStore/Views/Account/_ExternalLoginsListPartial.cshtml deleted file mode 100644 index 8f40061e06..0000000000 --- a/src/MusicStore/Views/Account/_ExternalLoginsListPartial.cshtml +++ /dev/null @@ -1,33 +0,0 @@ -@using Microsoft.AspNet.Identity; - -

Use another service to log in.

-
-@{ - var loginProviders = Context.HttpContext.GetAuthenticationTypes(); - if (loginProviders.Count() == 0) - { -
-

- There are no external authentication services configured. See this article - for details on setting up this ASP.NET application to support logging in via external services. -

-
- } - else - { - string action = Model.Action; - string returnUrl = Model.ReturnUrl; - using (Html.BeginForm(action, "Account", new { ReturnUrl = returnUrl })) - { - @Html.AntiForgeryToken() -
-

- @foreach (AuthenticationDescription p in loginProviders) - { - - } -

-
- } - } -} diff --git a/src/MusicStore/Views/Account/_RemoveAccountPartial.cshtml b/src/MusicStore/Views/Account/_RemoveAccountPartial.cshtml deleted file mode 100644 index 5b10a07d92..0000000000 --- a/src/MusicStore/Views/Account/_RemoveAccountPartial.cshtml +++ /dev/null @@ -1,34 +0,0 @@ -@model ICollection - - @if (Model.Count > 0) - { -

Registered Logins

- - - @foreach (var account in Model) - { - - - - - } - -
@account.LoginProvider - @if (ViewBag.ShowRemoveButton) - { - using (Html.BeginForm("Disassociate", "Account")) - { - @Html.AntiForgeryToken() -
- @Html.Hidden("loginProvider", account.LoginProvider) - @Html.Hidden("providerKey", account.ProviderKey) - -
- } - } - else - { - @:   - } -
- } \ No newline at end of file