From cdc61eb4ea5309769ad4db84d92594e4dc3dff67 Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 20 Mar 2017 16:45:17 -0400 Subject: Initial commit (azure deploy test) --- Project-Unite/Views/Manage/ManageLogins.cshtml | 70 ++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 Project-Unite/Views/Manage/ManageLogins.cshtml (limited to 'Project-Unite/Views/Manage/ManageLogins.cshtml') diff --git a/Project-Unite/Views/Manage/ManageLogins.cshtml b/Project-Unite/Views/Manage/ManageLogins.cshtml new file mode 100644 index 0000000..709cedc --- /dev/null +++ b/Project-Unite/Views/Manage/ManageLogins.cshtml @@ -0,0 +1,70 @@ +@model Project_Unite.Models.ManageLoginsViewModel +@using Microsoft.Owin.Security +@{ + ViewBag.Title = "Manage your external logins"; +} + +

@ViewBag.Title.

+ +

@ViewBag.StatusMessage

+@{ + var loginProviders = Context.GetOwinContext().Authentication.GetExternalAuthenticationTypes(); + 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 + { + if (Model.CurrentLogins.Count > 0) + { +

Registered Logins

+ + + @foreach (var account in Model.CurrentLogins) + { + + + + + } + +
@account.LoginProvider + @if (ViewBag.ShowRemoveButton) + { + using (Html.BeginForm("RemoveLogin", "Manage")) + { + @Html.AntiForgeryToken() +
+ @Html.Hidden("loginProvider", account.LoginProvider) + @Html.Hidden("providerKey", account.ProviderKey) + +
+ } + } + else + { + @:   + } +
+ } + if (Model.OtherLogins.Count > 0) + { + using (Html.BeginForm("LinkLogin", "Manage")) + { + @Html.AntiForgeryToken() +
+

+ @foreach (AuthenticationDescription p in Model.OtherLogins) + { + + } +

+
+ } + } + } +} -- cgit v1.2.3