-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update README.md * improved intellisense, added default value for QRPixelsPerModule, added QRException
- Loading branch information
Showing
5 changed files
with
28 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,7 @@ protected void Page_Load(object sender, EventArgs e) | |
this.lblSecretKey.Text = Request.QueryString["key"]; | ||
|
||
TwoFactorAuthenticator tfa = new TwoFactorAuthenticator(); | ||
var setupInfo = tfa.GenerateSetupCode("Test Two Factor", "[email protected]", Request.QueryString["key"], false, 3); | ||
var setupInfo = tfa.GenerateSetupCode("Test Two Factor", "[email protected]", Request.QueryString["key"], false, 10); | ||
|
||
string qrCodeImageUrl = setupInfo.QrCodeSetupImageUrl; | ||
string manualEntrySetupCode = setupInfo.ManualEntryKey; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
using System; | ||
|
||
namespace Google.Authenticator | ||
{ | ||
public class QRException : Exception | ||
{ | ||
public QRException(string message) : base(message) | ||
{ } | ||
|
||
public QRException(string message, Exception innerException) : base(message, innerException) | ||
{ } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters