PageRenderTime 24ms CodeModel.GetById 18ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 1ms

/BlogEngine/BlogEngine.NET/Account/login.aspx

#
ASP.NET | 48 lines | 46 code | 2 blank | 0 comment | 1 complexity | 538bd629c420e8acda5ef06fff810fe4 MD5 | raw file
 1<%@ Page Language="C#" MasterPageFile="account.master" AutoEventWireup="true" ClientIDMode="Static" Inherits="Account.Login" Codebehind="login.aspx.cs" %>
 2
 3<%@ MasterType VirtualPath="~/Account/account.master" %>
 4<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
 5</asp:Content>
 6<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
 7    <asp:Login ID="LoginUser" runat="server" EnableViewState="false" RenderOuterTable="false" OnAuthenticate="LoginUser_OnAuthenticate">
 8        <LayoutTemplate>
 9            <div class="page-header clearfix">
10                <h3>
11                    <asp:Label runat="server" ID="lblTitle" Text="<%$Resources:labels,login %>" /></h3>
12            </div>
13            <div class="account-content">
14                <div class="form-group">
15                    <asp:TextBox ID="UserName" runat="server" AutoCompleteType="None" placeholder="username" CssClass="form-control input-lg textEntry ltr-dir"></asp:TextBox>
16                </div>
17                <div class="form-group">
18                    <asp:TextBox ID="Password" runat="server" placeholder="*******" CssClass="form-control input-lg passwordEntry  ltr-dir" TextMode="Password"></asp:TextBox>
19                </div>
20                <div class="checkbox">
21                    <asp:CheckBox ID="RememberMe" runat="server" />
22                    <asp:Label ID="RememberMeLabel" runat="server" AssociatedControlID="RememberMe" CssClass="inline "><%=Resources.labels.rememberMe %></asp:Label>
23                </div>
24                <div class="btn-wrapper text-center">
25                    <asp:Button ID="LoginButton" runat="server" CommandName="Login" CssClass="btn btn-primary btn-block btn-lg" Text="<%$Resources:labels,login %>" OnClientClick="return ValidateLogin();" />
26                    
27                    <asp:PlaceHolder ID="phResetPassword" runat="server">
28                        <hr />
29                        <asp:HyperLink runat="server" ID="linkForgotPassword" CssClass="text-muted" Text="<%$ Resources:labels,forgotPassword %>" />
30                    </asp:PlaceHolder>
31                </div>
32            </div>
33        </LayoutTemplate>
34    </asp:Login>
35    <% if (BlogEngine.Core.BlogSettings.Instance.EnableSelfRegistration)
36       { %>
37    <div id="LoginRegister" class="text-center">
38        <hr />
39        <%=Resources.labels.dontHaveAccount %>
40        <asp:HyperLink ID="RegisterHyperLink" runat="server" EnableViewState="false" />
41    </div>
42    <% } %>
43    <script type="text/javascript">
44        $(document).ready(function () {
45            $("input[name$='UserName']").focus();
46        });
47    </script>
48</asp:Content>