2009-06-19 07:39:16 +00:00
<%@ Control Language="c#" AutoEventWireup="True" Codebehind="defaultUser.ascx.cs" Inherits="umbraco.presentation.install.steps.defaultUser" TargetSchema="http://schemas.microsoft.com/intellisense/ie5"%>
2010-12-06 22:21:17 +00:00
<asp:Placeholder ID="identify" Runat="server" Visible="True">
2009-06-19 07:39:16 +00:00
2010-12-06 22:21:17 +00:00
<!-- create box -->
2010-12-07 13:26:12 +00:00
<div class="tab main-tabinfo">
<div class="container">
<h1>Create User</h1>
<div class="create-hold">
2011-01-05 12:58:42 +00:00
<p>You can now setup a new admin user to log into Umbraco, we recommend using a stong password for this (a password which is more than 4 characters and contains a mix of letters, numbers and symbols).
Please make a note of the chosen password.</p>
2011-01-06 16:43:36 +00:00
<p>The password can be changed once you have completed the installation and logged into the admin interface.</p>
2010-12-07 13:26:12 +00:00
</div>
</div>
<div class="database-hold">
<form action="#">
<fieldset>
<div class="container">
<div class="instruction-hold">
2010-12-06 22:21:17 +00:00
<div class="row">
2010-12-16 18:31:18 +00:00
<asp:label AssociatedControlID="tb_name" runat="server">Name:</asp:label>
2010-12-07 13:26:12 +00:00
<span><asp:TextBox ID="tb_name" CssClass="text" type="text" Text="admin" runat="server" /></span>
2010-12-16 18:31:18 +00:00
<asp:RequiredFieldValidator Display="Dynamic" CssClass="invalidaing" ControlToValidate="tb_name" runat="server" ErrorMessage="Name is a mandatory field" />
2010-12-07 13:26:12 +00:00
</div>
<div class="row">
2010-12-16 18:31:18 +00:00
<asp:label AssociatedControlID="tb_email" runat="server">Email:</asp:label>
2010-12-07 13:26:12 +00:00
<span><asp:TextBox ID="tb_email" CssClass="text" type="text" Text="admin@domain.com" runat="server" /></span>
2010-12-16 18:31:18 +00:00
<asp:RequiredFieldValidator Display="Dynamic" CssClass="invalidaing" ControlToValidate="tb_email" runat="server" ErrorMessage="Email is a mandatory field" />
2010-12-07 13:26:12 +00:00
</div>
<div class="row">
2010-12-16 18:31:18 +00:00
<asp:label AssociatedControlID="tb_login" runat="server">Username:</asp:label>
2010-12-07 13:26:12 +00:00
<span><asp:TextBox ID="tb_login" CssClass="text" type="text" Text="admin" runat="server" /></span>
2010-12-16 18:31:18 +00:00
<asp:RequiredFieldValidator Display="Dynamic" CssClass="invalidaing" ControlToValidate="tb_login" runat="server" ErrorMessage="Username is a mandatory field" />
2010-12-07 13:26:12 +00:00
</div>
<div class="row" style="height: 35px; overflow: hidden;">
2010-12-16 18:31:18 +00:00
<asp:label AssociatedControlID="tb_password" runat="server">Password:</asp:label>
2010-12-07 13:26:12 +00:00
<span><asp:TextBox ID="tb_password" CssClass="text" TextMode="Password" type="text" Text="" runat="server" /></span>
2010-12-16 18:31:18 +00:00
<asp:RequiredFieldValidator Display="Dynamic" CssClass="invalidaing" ControlToValidate="tb_password" runat="server" ErrorMessage="Password is a mandatory field" />
2010-12-07 13:26:12 +00:00
</div>
<div class="row">
<asp:Label AssociatedControlID="tb_password_confirm" runat="server">Confirm Password:</asp:label>
2010-12-16 18:31:18 +00:00
<span><asp:TextBox ID="tb_password_confirm" CssClass="text" TextMode="Password" type="text" Text="" runat="server" /></span>
<asp:RequiredFieldValidator Display="Dynamic" CssClass="invalidaing" ControlToValidate="tb_password_confirm" runat="server" ErrorMessage="Confirm Password is a mandatory field" />
<asp:CompareValidator Display="Dynamic" CssClass="invalidaing" ControlToCompare="tb_password" ControlToValidate="tb_password_confirm" ErrorMessage="The passwords must be identical" runat="server" />
2010-12-07 13:26:12 +00:00
</div>
<div class="check-hold">
2010-12-10 13:03:19 +00:00
<asp:CheckBox ID="cb_newsletter" runat="server" Checked="true" />
2010-12-16 18:31:18 +00:00
<asp:label AssociatedControlID="cb_newsletter" runat="server">Sign up for our monthly newsletter</asp:label>
2010-12-07 13:26:12 +00:00
</div>
</div>
</div>
<footer class="btn-box">
<div class="t"> </div>
<asp:LinkButton CssClass="btn-create" runat="server" onclick="changePassword_Click"><span>Create user</span></asp:linkbutton>
</footer>
</fieldset>
</form>
</div>
</div>
</asp:Placeholder>
2009-06-19 07:39:16 +00:00
<script type="text/javascript">
$(document).ready(function() {
2010-12-06 22:21:17 +00:00
jQuery("#<%= tb_password.ClientID %>").passStrength({
2010-12-07 13:26:12 +00:00
shortPass: "invalidaing",
badPass: "invalidaing",
goodPass: "validaing",
strongPass: "validaing",
baseStyle: "basevalidaing",
userid: jQuery("#<%= tb_login.ClientID %>").val(),
2009-06-19 07:39:16 +00:00
messageloc: 1
});
});
2010-12-06 22:21:17 +00:00
</script>