diff options
author | Guillaume Lacasa <guillaume.lacasa@ucaya.com> | 2013-12-09 17:42:09 +0100 |
---|---|---|
committer | Guillaume Lacasa <guillaume.lacasa@ucaya.com> | 2013-12-09 17:42:09 +0100 |
commit | 73004eb56a904ee68cbc9cbd5e880d9cc8bdfde8 (patch) | |
tree | 1621d95c4c444cb50e4329a63091595c98b3e282 | |
parent | cb801c254bfbafe80a1f3cd093a3dfe1d01538cb (diff) | |
download | TwoStepsAuthenticator-73004eb56a904ee68cbc9cbd5e880d9cc8bdfde8.zip TwoStepsAuthenticator-73004eb56a904ee68cbc9cbd5e880d9cc8bdfde8.tar.gz TwoStepsAuthenticator-73004eb56a904ee68cbc9cbd5e880d9cc8bdfde8.tar.bz2 |
Readme update - IUsedCodesManager usage
-rw-r--r-- | README.md | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -9,7 +9,7 @@ Compatible with Microsoft Authenticator for Windows Phone, and Google Authentica You can use this library as well for a client application (if you want to create your own authenticator) or for a server application (add two-step authentication on your asp.net website) -# TOTP: Time-Based One-Time Password Algorithm +# TOTP ## Client usage @@ -41,7 +41,6 @@ var authenticator = new TwoStepsAuthenticator.TimeAuthenticator(); bool isok = authenticator.CheckCode(secret, code); </code></pre> -<<<<<<< HEAD ### Used codes manager Every code should only be used once. To prevent repeated use of a code a IUsedCodesManager interface is provided.<br> @@ -60,6 +59,3 @@ When you create a new Authenticator, add the instance of your IUsedCodesManager var usedCodeManager = new CustomUsedCodeManager(); var authenticator = new TwoStepsAuthenticator.TimeAuthenticator(usedCodeManager); </code></pre> -======= -Every time-based code should only be used once. A built-in mechanism ensures that. If you want to control this check by your self you can pass in an instance of IUsedCodesManager. ->>>>>>> 57f740845da867fc270d9b185508bc5761aa7d45 |