-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Derik Palacino
committed
Aug 16, 2013
1 parent
05b5205
commit 855a97a
Showing
162 changed files
with
29,462 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
<%@ Page Title="Change Password" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" | ||
CodeBehind="ChangePassword.aspx.cs" Inherits="OneAll.ASPNET.Account.ChangePassword" %> | ||
|
||
<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent"> | ||
</asp:Content> | ||
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent"> | ||
<h2> | ||
Change Password | ||
</h2> | ||
<p> | ||
Use the form below to change your password. | ||
</p> | ||
<p> | ||
New passwords are required to be a minimum of <%= Membership.MinRequiredPasswordLength %> characters in length. | ||
</p> | ||
<asp:ChangePassword ID="ChangeUserPassword" runat="server" CancelDestinationPageUrl="~/" EnableViewState="false" RenderOuterTable="false" | ||
SuccessPageUrl="ChangePasswordSuccess.aspx"> | ||
<ChangePasswordTemplate> | ||
<span class="failureNotification"> | ||
<asp:Literal ID="FailureText" runat="server"></asp:Literal> | ||
</span> | ||
<asp:ValidationSummary ID="ChangeUserPasswordValidationSummary" runat="server" CssClass="failureNotification" | ||
ValidationGroup="ChangeUserPasswordValidationGroup"/> | ||
<div class="accountInfo"> | ||
<fieldset class="changePassword"> | ||
<legend>Account Information</legend> | ||
<p> | ||
<asp:Label ID="CurrentPasswordLabel" runat="server" AssociatedControlID="CurrentPassword">Old Password:</asp:Label> | ||
<asp:TextBox ID="CurrentPassword" runat="server" CssClass="passwordEntry" TextMode="Password"></asp:TextBox> | ||
<asp:RequiredFieldValidator ID="CurrentPasswordRequired" runat="server" ControlToValidate="CurrentPassword" | ||
CssClass="failureNotification" ErrorMessage="Password is required." ToolTip="Old Password is required." | ||
ValidationGroup="ChangeUserPasswordValidationGroup">*</asp:RequiredFieldValidator> | ||
</p> | ||
<p> | ||
<asp:Label ID="NewPasswordLabel" runat="server" AssociatedControlID="NewPassword">New Password:</asp:Label> | ||
<asp:TextBox ID="NewPassword" runat="server" CssClass="passwordEntry" TextMode="Password"></asp:TextBox> | ||
<asp:RequiredFieldValidator ID="NewPasswordRequired" runat="server" ControlToValidate="NewPassword" | ||
CssClass="failureNotification" ErrorMessage="New Password is required." ToolTip="New Password is required." | ||
ValidationGroup="ChangeUserPasswordValidationGroup">*</asp:RequiredFieldValidator> | ||
</p> | ||
<p> | ||
<asp:Label ID="ConfirmNewPasswordLabel" runat="server" AssociatedControlID="ConfirmNewPassword">Confirm New Password:</asp:Label> | ||
<asp:TextBox ID="ConfirmNewPassword" runat="server" CssClass="passwordEntry" TextMode="Password"></asp:TextBox> | ||
<asp:RequiredFieldValidator ID="ConfirmNewPasswordRequired" runat="server" ControlToValidate="ConfirmNewPassword" | ||
CssClass="failureNotification" Display="Dynamic" ErrorMessage="Confirm New Password is required." | ||
ToolTip="Confirm New Password is required." ValidationGroup="ChangeUserPasswordValidationGroup">*</asp:RequiredFieldValidator> | ||
<asp:CompareValidator ID="NewPasswordCompare" runat="server" ControlToCompare="NewPassword" ControlToValidate="ConfirmNewPassword" | ||
CssClass="failureNotification" Display="Dynamic" ErrorMessage="The Confirm New Password must match the New Password entry." | ||
ValidationGroup="ChangeUserPasswordValidationGroup">*</asp:CompareValidator> | ||
</p> | ||
</fieldset> | ||
<p class="submitButton"> | ||
<asp:Button ID="CancelPushButton" runat="server" CausesValidation="False" CommandName="Cancel" Text="Cancel"/> | ||
<asp:Button ID="ChangePasswordPushButton" runat="server" CommandName="ChangePassword" Text="Change Password" | ||
ValidationGroup="ChangeUserPasswordValidationGroup"/> | ||
</p> | ||
</div> | ||
</ChangePasswordTemplate> | ||
</asp:ChangePassword> | ||
</asp:Content> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Web; | ||
using System.Web.UI; | ||
using System.Web.UI.WebControls; | ||
|
||
namespace OneAll.ASPNET.Account | ||
{ | ||
public partial class ChangePassword : System.Web.UI.Page | ||
{ | ||
protected void Page_Load(object sender, EventArgs e) | ||
{ | ||
|
||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<%@ Page Title="Change Password" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" | ||
CodeBehind="ChangePasswordSuccess.aspx.cs" Inherits="OneAll.ASPNET.Account.ChangePasswordSuccess" %> | ||
|
||
<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent"> | ||
</asp:Content> | ||
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent"> | ||
<h2> | ||
Change Password | ||
</h2> | ||
<p> | ||
Your password has been changed successfully. | ||
</p> | ||
</asp:Content> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Web; | ||
using System.Web.UI; | ||
using System.Web.UI.WebControls; | ||
|
||
namespace OneAll.ASPNET.Account | ||
{ | ||
public partial class ChangePasswordSuccess : System.Web.UI.Page | ||
{ | ||
protected void Page_Load(object sender, EventArgs e) | ||
{ | ||
|
||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<%@ Page Title="Log In" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="OneAll.ASPNET.Account.Login" %> | ||
<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent"> | ||
<%= Page.OneAllHeaderScript() %> | ||
</asp:Content> | ||
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent"> | ||
<h2>Log In</h2> | ||
<%= this.Page.OneAllDisplayLogOnScript() %> | ||
</asp:Content> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Web; | ||
using System.Web.UI; | ||
using System.Web.UI.WebControls; | ||
using OneAll.Users; | ||
|
||
namespace OneAll.ASPNET.Account | ||
{ | ||
public partial class Login : System.Web.UI.Page | ||
{ | ||
protected void Page_Load(object sender, EventArgs e) | ||
{ | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
<%@ Page Title="Register" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" | ||
CodeBehind="Register.aspx.cs" Inherits="OneAll.ASPNET.Account.Register" %> | ||
|
||
<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent"> | ||
</asp:Content> | ||
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent"> | ||
<asp:CreateUserWizard ID="RegisterUser" runat="server" EnableViewState="false" OnCreatedUser="RegisterUser_CreatedUser"> | ||
<LayoutTemplate> | ||
<asp:PlaceHolder ID="wizardStepPlaceholder" runat="server"></asp:PlaceHolder> | ||
<asp:PlaceHolder ID="navigationPlaceholder" runat="server"></asp:PlaceHolder> | ||
</LayoutTemplate> | ||
<WizardSteps> | ||
<asp:CreateUserWizardStep ID="RegisterUserWizardStep" runat="server"> | ||
<ContentTemplate> | ||
<h2> | ||
Create a New Account | ||
</h2> | ||
<p> | ||
Use the form below to create a new account. | ||
</p> | ||
<p> | ||
Passwords are required to be a minimum of <%= Membership.MinRequiredPasswordLength %> characters in length. | ||
</p> | ||
<span class="failureNotification"> | ||
<asp:Literal ID="ErrorMessage" runat="server"></asp:Literal> | ||
</span> | ||
<asp:ValidationSummary ID="RegisterUserValidationSummary" runat="server" CssClass="failureNotification" | ||
ValidationGroup="RegisterUserValidationGroup"/> | ||
<div class="accountInfo"> | ||
<fieldset class="register"> | ||
<legend>Account Information</legend> | ||
<p> | ||
<asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">User Name:</asp:Label> | ||
<asp:TextBox ID="UserName" runat="server" CssClass="textEntry"></asp:TextBox> | ||
<asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName" | ||
CssClass="failureNotification" ErrorMessage="User Name is required." ToolTip="User Name is required." | ||
ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator> | ||
</p> | ||
<p> | ||
<asp:Label ID="EmailLabel" runat="server" AssociatedControlID="Email">E-mail:</asp:Label> | ||
<asp:TextBox ID="Email" runat="server" CssClass="textEntry"></asp:TextBox> | ||
<asp:RequiredFieldValidator ID="EmailRequired" runat="server" ControlToValidate="Email" | ||
CssClass="failureNotification" ErrorMessage="E-mail is required." ToolTip="E-mail is required." | ||
ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator> | ||
</p> | ||
<p> | ||
<asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">Password:</asp:Label> | ||
<asp:TextBox ID="Password" runat="server" CssClass="passwordEntry" TextMode="Password"></asp:TextBox> | ||
<asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password" | ||
CssClass="failureNotification" ErrorMessage="Password is required." ToolTip="Password is required." | ||
ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator> | ||
</p> | ||
<p> | ||
<asp:Label ID="ConfirmPasswordLabel" runat="server" AssociatedControlID="ConfirmPassword">Confirm Password:</asp:Label> | ||
<asp:TextBox ID="ConfirmPassword" runat="server" CssClass="passwordEntry" TextMode="Password"></asp:TextBox> | ||
<asp:RequiredFieldValidator ControlToValidate="ConfirmPassword" CssClass="failureNotification" Display="Dynamic" | ||
ErrorMessage="Confirm Password is required." ID="ConfirmPasswordRequired" runat="server" | ||
ToolTip="Confirm Password is required." ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator> | ||
<asp:CompareValidator ID="PasswordCompare" runat="server" ControlToCompare="Password" ControlToValidate="ConfirmPassword" | ||
CssClass="failureNotification" Display="Dynamic" ErrorMessage="The Password and Confirmation Password must match." | ||
ValidationGroup="RegisterUserValidationGroup">*</asp:CompareValidator> | ||
</p> | ||
</fieldset> | ||
<p class="submitButton"> | ||
<asp:Button ID="CreateUserButton" runat="server" CommandName="MoveNext" Text="Create User" | ||
ValidationGroup="RegisterUserValidationGroup"/> | ||
</p> | ||
</div> | ||
</ContentTemplate> | ||
<CustomNavigationTemplate> | ||
</CustomNavigationTemplate> | ||
</asp:CreateUserWizardStep> | ||
</WizardSteps> | ||
</asp:CreateUserWizard> | ||
</asp:Content> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Web; | ||
using System.Web.Security; | ||
using System.Web.UI; | ||
using System.Web.UI.WebControls; | ||
|
||
namespace OneAll.ASPNET.Account | ||
{ | ||
public partial class Register : System.Web.UI.Page | ||
{ | ||
|
||
protected void Page_Load(object sender, EventArgs e) | ||
{ | ||
RegisterUser.ContinueDestinationPageUrl = Request.QueryString["ReturnUrl"]; | ||
} | ||
|
||
protected void RegisterUser_CreatedUser(object sender, EventArgs e) | ||
{ | ||
FormsAuthentication.SetAuthCookie(RegisterUser.UserName, false /* createPersistentCookie */); | ||
|
||
string continueUrl = RegisterUser.ContinueDestinationPageUrl; | ||
if (String.IsNullOrEmpty(continueUrl)) | ||
{ | ||
continueUrl = "~/"; | ||
} | ||
Response.Redirect(continueUrl); | ||
} | ||
|
||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?xml version="1.0"?> | ||
<configuration> | ||
|
||
<location path="Register.aspx"> | ||
<system.web> | ||
<authorization> | ||
<allow users="*"/> | ||
</authorization> | ||
</system.web> | ||
</location> | ||
|
||
<system.web> | ||
<authorization> | ||
<deny users="?"/> | ||
</authorization> | ||
</system.web> | ||
|
||
</configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" | ||
CodeBehind="Default.aspx.cs" Inherits="OneAll.ASPNET._Default" %> | ||
|
||
<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent"> | ||
</asp:Content> | ||
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent"> | ||
<h2> | ||
Welcome to OneAll ASP.NET! | ||
</h2> | ||
<p> | ||
To learn more about OneAll visit <a href="http://www.oneall.com" title="OneAll Website">www.oneall.com</a>. | ||
</p> | ||
<p> | ||
You can also find documentation in CHM format in the ZIP file this sample was ship in, or online at <a href="http://docs.oneall.com" title="OneAll Documentation Website">docs.oneall.com</a>. | ||
</p> | ||
<p> | ||
To see OneAll in action, please follow these simple steps. | ||
</p> | ||
<ol> | ||
<li>Edit the web configuration file of this site to include <span style="text-decoration: underline;">your OneAll API credentials</span>.</li> | ||
<li>Save the configuration, <strong>this step is VERY important</strong>.</li> | ||
<li>Refresh this page (<i>it's only common sense to you</i>).</li> | ||
<li>Click the "[ Login ]" link in the upper right corner of this page.</li> | ||
</ol> | ||
</asp:Content> |
Oops, something went wrong.