Skip to content

Commit

Permalink
0.0.2 removed logobject.instance references.
Browse files Browse the repository at this point in the history
  • Loading branch information
lanesCSO committed Aug 27, 2024
1 parent 54551a1 commit 9b49eaf
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Binary file added rls/CSO.Recaptcha.0.0.1.nupkg
Binary file not shown.
Binary file added rls/CSO.Recaptcha.0.0.2.nupkg
Binary file not shown.
4 changes: 2 additions & 2 deletions src/CSO.Recaptcha/CSO.Recaptcha.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
<PackageId>CSO.Recaptcha</PackageId>
<Product>CSO Recaptcha</Product>
<Copyright>Central Statistics Office, Ireland</Copyright>
<Version>0.0.1</Version>
<Version>0.0.2</Version>
<Authors>Central Statistics Office, Ireland</Authors>
<SignAssembly>False</SignAssembly>
<RepositoryUrl>https://github.com/CSOIreland/CSORecaptcha</RepositoryUrl>
<PackageReleaseNotes>
- [INFO] initial release of CSO standalone recaptcha library
- [bug fix] removed logobject.instance references.
</PackageReleaseNotes>
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
<RestoreLockedMode>true</RestoreLockedMode>
Expand Down
8 changes: 4 additions & 4 deletions src/CSO.Recaptcha/Entities/ReCAPTCHA.cs
Original file line number Diff line number Diff line change
Expand Up @@ -89,24 +89,24 @@ public static bool Validate(string encodedResponse, IDictionary<string, string>
var responseObject = JsonConvert.DeserializeObject<dynamic>(responseString, new JsonSerializerSettings { TypeNameHandling = TypeNameHandling.None });
var responseSuccess = (string)responseObject["success"];

LogObject.Instance.Info("Server Response: " + responseString);
LogObject.Info("Server Response: " + responseString);

if (responseSuccess.ToLowerInvariant() == "true")
{
// All good and valid
LogObject.Instance.Info("Valid Encoded Response: " + encodedResponse);
LogObject.Info("Valid Encoded Response: " + encodedResponse);
return true;
}
else
{
// Something went wrong
LogObject.Instance.Info("Invalid Encoded Response: " + encodedResponse);
LogObject.Info("Invalid Encoded Response: " + encodedResponse);
return false;
}
}
catch (Exception e)
{
LogObject.Instance.Fatal(e);
LogObject.Fatal(e);
return false;
}
}
Expand Down

0 comments on commit 9b49eaf

Please sign in to comment.