summaryrefslogtreecommitdiffstats
path: root/TwoStepsAuthenticator.TestWebsite
diff options
context:
space:
mode:
authorGuillaume Lacasa <guillaumelacasa@hotmail.com>2014-03-17 18:01:40 +0100
committerGuillaume Lacasa <guillaumelacasa@hotmail.com>2014-03-17 18:01:40 +0100
commit6f71d431c921e8b9aab0bbe89b3293671b81563e (patch)
tree108abd109f4dfe6744557711494ede9c81124867 /TwoStepsAuthenticator.TestWebsite
parent0d73b105daca5ccca439d0e04692d773c33d274a (diff)
downloadTwoStepsAuthenticator-6f71d431c921e8b9aab0bbe89b3293671b81563e.zip
TwoStepsAuthenticator-6f71d431c921e8b9aab0bbe89b3293671b81563e.tar.gz
TwoStepsAuthenticator-6f71d431c921e8b9aab0bbe89b3293671b81563e.tar.bz2
The UsedCodeManager needs to have an user object, in order to avoid a user to block a temp code for every other usersv1.0
Diffstat (limited to 'TwoStepsAuthenticator.TestWebsite')
-rw-r--r--TwoStepsAuthenticator.TestWebsite/Controllers/HomeController.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/TwoStepsAuthenticator.TestWebsite/Controllers/HomeController.cs b/TwoStepsAuthenticator.TestWebsite/Controllers/HomeController.cs
index ca6666c..18b0c29 100644
--- a/TwoStepsAuthenticator.TestWebsite/Controllers/HomeController.cs
+++ b/TwoStepsAuthenticator.TestWebsite/Controllers/HomeController.cs
@@ -45,7 +45,7 @@ namespace TwoStepsAuthenticator.TestWebsite.Controllers
{
WebsiteUser user = (WebsiteUser)Session["AuthenticatedUser"];
var auth = new TwoStepsAuthenticator.TimeAuthenticator(usedCodeManager: usedCodesManager);
- if (auth.CheckCode(user.DoubleAuthKey, code))
+ if (auth.CheckCode(user.DoubleAuthKey, code, user))
{
FormsAuthentication.SetAuthCookie(user.Login, true);
return RedirectToAction("Welcome");