This file contains hidden or 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
| using System.Web.Mvc; | |
| namespace WebApplication.Controllers | |
| { | |
| public class RoyaltyController : Controller | |
| { | |
| public ActionResult Index() | |
| { | |
| return View(); | |
| } |
This file contains hidden or 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
| <html> | |
| <head> | |
| <title>Dancing Frog!!!</title> | |
| </head> | |
| <body> | |
| <form name="evilform" method="post" action="http://elcheapo.com/Royalty/Edit"> | |
| <input type="hidden" id="RoyaltyPercent" name="RoyaltyPercent" type="text" value="99" /> | |
| <input id="AuthorID" name="AuthorID" type="hidden" value="213-46-8915" /> | |
| <input id="TitleID" name="TitleID" type="hidden" value="BU1032" /> | |
| </form> |
This file contains hidden or 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
| using System; | |
| using System.IO; | |
| using System.Linq; | |
| using System.Reflection; | |
| using System.Web.Mvc; | |
| using PostSharp.Aspects; | |
| using PostSharp.Extensibility; | |
| namespace WebApplication.Aspects |
This file contains hidden or 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
| using System; | |
| using System.IO; | |
| using System.Web.Mvc; | |
| using PostSharp.Aspects; | |
| using PostSharp.Extensibility; | |
| namespace WebApplication.Aspects { | |
| [Serializable] | |
| public class VerifyControllerAttribute : TypeLevelAspect { |
This file contains hidden or 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
| namespace DataAccess.DTO | |
| { | |
| [Aspects.EncryptedType] | |
| public class Credential | |
| { | |
| public string LoginName { get; set; } | |
| [Aspects.Encrypted] | |
| public string Password { get; set; } |
This file contains hidden or 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
| namespace DataAccess.Aspects | |
| { | |
| public interface IEncrypted | |
| { | |
| object AsClear(string Name); | |
| } | |
| } |
This file contains hidden or 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
| using System; | |
| using System.Collections.Generic; | |
| using System.Security.Cryptography; | |
| using PostSharp.Aspects; | |
| using PostSharp.Aspects.Advices; | |
| using PostSharp.Aspects.Dependencies; | |
| namespace DataAccess.Aspects { | |
| [Serializable] |
This file contains hidden or 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
| using System; | |
| using System.Collections.Generic; | |
| using System.Security.Cryptography; | |
| using PostSharp.Aspects; | |
| using PostSharp.Aspects.Dependencies; | |
| using PostSharp.Aspects.Advices; | |
| namespace DataAccess.Aspects { | |
| [Serializable] |
This file contains hidden or 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
| using MbUnit.Framework; | |
| namespace DataAccessTests { | |
| [TestFixture] | |
| public class CredentialTest | |
| { | |
| [Test] | |
| public void TestPasswordIsEncrypted() { | |
| var cr = new DataAccess.DTO.Credential(); | |
| cr.Password = "Password1!"; |
This file contains hidden or 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
| <HTML><HEAD> | |
| <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script> | |
| <SCRIPT type="text/javascript" src="https://js.stripe.com/v1/"></SCRIPT> | |
| <SCRIPT > | |
| Stripe.setPublishableKey('<Stripe Public Key Here>'); | |
| function formSubmit() { | |
| if(validatePage() == true) { | |
| $('.submit-button').attr("disabled", "disabled"); | |
| $("#processing").html("Processing credit card..."); |
OlderNewer