Skip to content

Commit

Permalink
Release the 1.2.1 version.
Browse files Browse the repository at this point in the history
  • Loading branch information
1001binary committed Apr 28, 2015
1 parent b398bb4 commit 2a47ab7
Show file tree
Hide file tree
Showing 33 changed files with 44 additions and 2 deletions.
Binary file modified GoogleRecaptcha.WebForms/bin/GoogleRecaptcha.WebForms.dll
Binary file not shown.
Binary file modified GoogleRecaptcha.WebForms/bin/GoogleRecaptcha.WebForms.pdb
Binary file not shown.
Binary file modified GoogleRecaptcha.WebForms/bin/GoogleRecaptcha.dll
Binary file not shown.
Binary file modified GoogleRecaptcha.WebForms/bin/GoogleRecaptcha.pdb
Binary file not shown.
Binary file modified GoogleRecaptcha.WebForms/bin/GoogleRecaptchaWebForms.dll
Binary file not shown.
Binary file modified GoogleRecaptcha.WebForms/bin/GoogleRecaptchaWebForms.pdb
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,13 @@ E:\projects\GoogleRecaptcha\GoogleRecaptcha.WebForms\bin\GoogleRecaptcha.pdb
E:\projects\GoogleRecaptcha\GoogleRecaptcha.WebForms\obj\Debug\GoogleRecaptcha.WebForms.csprojResolveAssemblyReference.cache
E:\projects\GoogleRecaptcha\GoogleRecaptcha.WebForms\obj\Debug\GoogleRecaptcha.WebForms.dll
E:\projects\GoogleRecaptcha\GoogleRecaptcha.WebForms\obj\Debug\GoogleRecaptcha.WebForms.pdb
D:\projects\google-recaptcha\GoogleRecaptcha.WebForms\bin\GoogleRecaptcha.WebForms.dll.config
D:\projects\google-recaptcha\GoogleRecaptcha.WebForms\bin\GoogleRecaptcha.WebForms.dll
D:\projects\google-recaptcha\GoogleRecaptcha.WebForms\bin\GoogleRecaptcha.WebForms.pdb
D:\projects\google-recaptcha\GoogleRecaptcha.WebForms\bin\GoogleRecaptchaWebForms.dll
D:\projects\google-recaptcha\GoogleRecaptcha.WebForms\bin\GoogleRecaptcha.dll
D:\projects\google-recaptcha\GoogleRecaptcha.WebForms\bin\GoogleRecaptchaWebForms.pdb
D:\projects\google-recaptcha\GoogleRecaptcha.WebForms\bin\GoogleRecaptcha.pdb
D:\projects\google-recaptcha\GoogleRecaptcha.WebForms\obj\Debug\GoogleRecaptcha.WebForms.csprojResolveAssemblyReference.cache
D:\projects\google-recaptcha\GoogleRecaptcha.WebForms\obj\Debug\GoogleRecaptcha.WebForms.dll
D:\projects\google-recaptcha\GoogleRecaptcha.WebForms\obj\Debug\GoogleRecaptcha.WebForms.pdb
Binary file not shown.
Binary file modified GoogleRecaptcha.WebForms/obj/Debug/GoogleRecaptcha.WebForms.dll
Binary file not shown.
Binary file not shown.
Binary file modified GoogleRecaptcha.WebMvc/bin/GoogleRecaptcha.WebMvc.dll
Binary file not shown.
Binary file modified GoogleRecaptcha.WebMvc/bin/GoogleRecaptcha.WebMvc.pdb
Binary file not shown.
Binary file modified GoogleRecaptcha.WebMvc/bin/GoogleRecaptcha.dll
Binary file not shown.
Binary file modified GoogleRecaptcha.WebMvc/bin/GoogleRecaptcha.pdb
Binary file not shown.
Binary file not shown.
Binary file modified GoogleRecaptcha.WebMvc/obj/Debug/GoogleRecaptcha.WebMvc.dll
Binary file not shown.
Binary file modified GoogleRecaptcha.WebMvc/obj/Debug/GoogleRecaptcha.WebMvc.pdb
Binary file not shown.
Binary file modified GoogleRecaptcha.v12.suo
Binary file not shown.
36 changes: 34 additions & 2 deletions GoogleRecaptcha/RecaptchaV2Data.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,16 @@
/// </summary>
public class RecaptchaV2Data
{
/// <summary>
/// Gets or sets the _response field. This field indicates that this is the private response returned from the server.
/// </summary>
private string _response;

/// <summary>
/// Gets or sets the _remoteIp field. This field indicates that this is the this is private remote ip address from the client.
/// </summary>
private string _remoteIp;

/// <summary>
/// Gets or sets the Secret property. This property indicates that this is the secret key to be set up on the Google Recaptcha server.
/// </summary>
Expand All @@ -17,15 +27,37 @@ public class RecaptchaV2Data
/// </summary>
public string Response
{
get { return HttpContext.Current.Request.Form["g-recaptcha-response"]; }
get
{
if (_response == null)
{
return HttpContext.Current.Request.Form["g-recaptcha-response"];
}
return _response;
}
set
{
_response = value;
}
}

/// <summary>
/// Gets the RemoteIp property. This property indicates that this is remote ip address from the client.
/// </summary>
public string RemoteIp
{
get { return HttpContext.Current.Request.ServerVariables["REMOTE_ADDR"]; }
get
{
if (_remoteIp == null)
{
return HttpContext.Current.Request.ServerVariables["REMOTE_ADDR"];
}
return _remoteIp;
}
set
{
_remoteIp = value;
}
}
}
}
Binary file modified GoogleRecaptcha/bin/Debug/GoogleRecaptcha.dll
Binary file not shown.
Binary file modified GoogleRecaptcha/bin/Debug/GoogleRecaptcha.pdb
Binary file not shown.
Binary file not shown.
Binary file modified GoogleRecaptcha/obj/Debug/GoogleRecaptcha.dll
Binary file not shown.
Binary file modified GoogleRecaptcha/obj/Debug/GoogleRecaptcha.pdb
Binary file not shown.
Binary file modified GoogleRecaptchaWebForms/bin/Debug/GoogleRecaptcha.dll
Binary file not shown.
Binary file modified GoogleRecaptchaWebForms/bin/Debug/GoogleRecaptcha.pdb
Binary file not shown.
Binary file modified GoogleRecaptchaWebForms/bin/Debug/GoogleRecaptchaWebForms.dll
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified GoogleRecaptchaWebForms/obj/Debug/GoogleRecaptchaWebForms.dll
Binary file not shown.
Binary file not shown.

0 comments on commit 2a47ab7

Please sign in to comment.