-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAddNewUser.aspx
58 lines (51 loc) · 2.16 KB
/
AddNewUser.aspx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<%@ Page Title="" Language="C#" MasterPageFile="~/Resources/Master-Pages/Site.Master" AutoEventWireup="true" CodeBehind="AddNewUser.aspx.cs" Inherits="OWASP.WebGoat.NET.AddNewUser" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContentPlaceHolder" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="HelpContentPlaceholder" runat="server">
This page allows you to add a new user
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="BodyContentPlaceholder" runat="server">
<h1 class="title-regular-4 clearfix">Add New User</h1>
<%--
<p>
<asp:CreateUserWizard ID="RegisterUser" runat="server"
CancelDestinationPageUrl="~/Default.aspx"
ContinueDestinationPageUrl="~/Default.aspx" DisplayCancelButton="True"
oncreatinguser="RegisterUser_CreatingUser">
<WizardSteps>
<asp:CreateUserWizardStep ID="CreateUserWizardStep1" runat="server" />
<asp:CompleteWizardStep ID="CompleteWizardStep1" runat="server" />
</WizardSteps>
</asp:CreateUserWizard>
</p>
--%>
<p>
<asp:Label runat="server" id="InvalidUserNameOrPasswordMessage" Visible="false" EnableViewState="false" ForeColor="Red"></asp:Label>
</p>
<p>
<table>
<tr>
<td>Enter a username: </td>
<td><asp:TextBox ID="Username" runat="server"></asp:TextBox></td>
</tr>
<tr>
<td>Choose a password:</td>
<td><asp:TextBox ID="Password" TextMode="Password" runat="server"></asp:TextBox></td>
</tr>
<tr>
<td>Enter your email address:</td>
<td><asp:TextBox ID="Email" runat="server"></asp:TextBox></td>
</tr>
<tr>
<td><asp:Label runat="server" ID="SecurityQuestion"></asp:Label>: </td>
<td><asp:TextBox ID="SecurityAnswer" runat="server"></asp:TextBox> </td>
</tr>
</table>
<p/>
<asp:Button ID="CreateAccountButton" runat="server"
Text="Create the User Account" onclick="CreateAccountButton_Click" />
</p>
<p>
<asp:Label ID="CreateAccountResults" runat="server"></asp:Label>
</p>
</asp:Content>