diff options
author | David Christiansen <coding@davedoes.net> | 2012-06-30 16:06:46 -0700 |
---|---|---|
committer | David Christiansen <coding@davedoes.net> | 2012-06-30 16:06:46 -0700 |
commit | 06401bb049dc29cf4446eb61a4a72317a644ce54 (patch) | |
tree | 7c475929350b31b4b848a1faa57bd0d7cbbf512c /src/OAuth/OAuthAuthorizationServer/Views/Shared/LogOnUserControl.ascx | |
parent | 02ce959db12fec57e846e5ebfa662cd0327ce69c (diff) | |
parent | 3286c37f3a967e7d142534df84604a66be9d176c (diff) | |
download | DotNetOpenAuth.Samples-06401bb049dc29cf4446eb61a4a72317a644ce54.zip DotNetOpenAuth.Samples-06401bb049dc29cf4446eb61a4a72317a644ce54.tar.gz DotNetOpenAuth.Samples-06401bb049dc29cf4446eb61a4a72317a644ce54.tar.bz2 |
Merge pull request #1 from DavidChristiansen/master
Kachow!
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") %> ] +<% + } +%> |