diff options
author | David Christiansen <coding@davedoes.net> | 2012-03-15 22:10:55 +0000 |
---|---|---|
committer | David Christiansen <coding@davedoes.net> | 2012-03-15 22:10:55 +0000 |
commit | a5bfa2bb8a614b1932ec8b7bbc6a0cc6bca3051f (patch) | |
tree | a3057157fa3287e0c0c4cc49be1854f9aa63d321 /src/OAuth/OAuthAuthorizationServer/Views/Shared/LogOnUserControl.ascx | |
parent | 02ce959db12fec57e846e5ebfa662cd0327ce69c (diff) | |
download | DotNetOpenAuth.Samples-a5bfa2bb8a614b1932ec8b7bbc6a0cc6bca3051f.zip DotNetOpenAuth.Samples-a5bfa2bb8a614b1932ec8b7bbc6a0cc6bca3051f.tar.gz DotNetOpenAuth.Samples-a5bfa2bb8a614b1932ec8b7bbc6a0cc6bca3051f.tar.bz2 |
W.I.P.
* Initial migration and reference to DNOA Nuget packages (From teamcity.dotnetopenauth.net)
* Awaiting fix to DotNetOpenAuth.OpenIdOAuth.nuspec in order to complete migration.
Diffstat (limited to 'src/OAuth/OAuthAuthorizationServer/Views/Shared/LogOnUserControl.ascx')
-rw-r--r-- | src/OAuth/OAuthAuthorizationServer/Views/Shared/LogOnUserControl.ascx | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/OAuth/OAuthAuthorizationServer/Views/Shared/LogOnUserControl.ascx b/src/OAuth/OAuthAuthorizationServer/Views/Shared/LogOnUserControl.ascx new file mode 100644 index 0000000..9afaab3 --- /dev/null +++ b/src/OAuth/OAuthAuthorizationServer/Views/Shared/LogOnUserControl.ascx @@ -0,0 +1,14 @@ +<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %> +<% + if (Request.IsAuthenticated) { +%> + Welcome <b><%: Page.User.Identity.Name %></b>! + [ <%: Html.ActionLink("Log Off", "LogOff", "Account") %> ] +<% + } + else { +%> + [ <%: Html.ActionLink("Log On", "LogOn", "Account") %> ] +<% + } +%> |