Skip to content

Commit

Permalink
Added Graphviz for Login Process
Browse files Browse the repository at this point in the history
  • Loading branch information
OutWrest committed May 28, 2020
1 parent cafbc8e commit 0be2f01
Show file tree
Hide file tree
Showing 12 changed files with 63 additions and 2 deletions.
Binary file modified .vs/BurpsRSuite/DesignTimeBuild/.dtbcache.v2
Binary file not shown.
Binary file modified .vs/BurpsRSuite/v16/.suo
Binary file not shown.
2 changes: 1 addition & 1 deletion BurpsRSuite/Controllers/AccountController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ public async Task<IActionResult> TwoFactor(TwoFactorViewModel model)

Totp totp = new Totp(user.TotpSecret);

if (!totp.VerifyTotp(model.Passcode, out long window, VerificationWindow.RfcSpecifiedNetworkDelay))
if (String.IsNullOrEmpty(model.Passcode) || !totp.VerifyTotp(model.Passcode, out long window, VerificationWindow.RfcSpecifiedNetworkDelay))
{
ModelState.AddModelError(string.Empty, "Verification Failed.");
model.Passcode = "";
Expand Down
Binary file modified BurpsRSuite/accounts.db
Binary file not shown.
Binary file modified BurpsRSuite/bin/Debug/netcoreapp3.1/BurpsRSuite.dll
Binary file not shown.
Binary file modified BurpsRSuite/bin/Debug/netcoreapp3.1/BurpsRSuite.pdb
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
Expand Down
Binary file not shown.
Binary file modified BurpsRSuite/obj/Debug/netcoreapp3.1/BurpsRSuite.dll
Binary file not shown.
Binary file modified BurpsRSuite/obj/Debug/netcoreapp3.1/BurpsRSuite.pdb
Binary file not shown.
53 changes: 53 additions & 0 deletions Graphviz/FirstL.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions Graphviz/InFirstLogin.dot
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
digraph Login {
login [label="Input username & password"]
Answer [label="Answer CQ"]
end [label="Authenticated"]
start -> login -> Answer -> end [color=blue]
start -> login -> "Set up CQ" -> end [color=black]
start -> login -> Answer -> "Input code (App)" -> end [color=red]

}

0 comments on commit 0be2f01

Please sign in to comment.