diff options
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") %> ] +<% + } +%> |