Skip to content

Commit 494570a

Browse files
authored
Update README.md
1 parent a64023f commit 494570a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ It's a simple honeypot implementation for ASP.NET Core to detect bot posts.
5252
[HttpPost]
5353
public async Task<IActionResult> PostRegister(RegisterViewModel registerData)
5454
{
55-
if (HttpContext.IsHoneypotTrapped())
55+
if (await HttpContext.IsHoneypotTriggeredAsync())
5656
{
5757
ModelState.Clear();
5858
ModelState.AddModelError("", "bot detection");

0 commit comments

Comments
 (0)