summaryrefslogtreecommitdiffstats
path: root/TwoStepsAuthenticator.TestWebsite/Views/Home/Index.cshtml
diff options
context:
space:
mode:
Diffstat (limited to 'TwoStepsAuthenticator.TestWebsite/Views/Home/Index.cshtml')
-rw-r--r--TwoStepsAuthenticator.TestWebsite/Views/Home/Index.cshtml39
1 files changed, 39 insertions, 0 deletions
diff --git a/TwoStepsAuthenticator.TestWebsite/Views/Home/Index.cshtml b/TwoStepsAuthenticator.TestWebsite/Views/Home/Index.cshtml
new file mode 100644
index 0000000..65c97de
--- /dev/null
+++ b/TwoStepsAuthenticator.TestWebsite/Views/Home/Index.cshtml
@@ -0,0 +1,39 @@
+@{
+ ViewBag.Title = "Index";
+}
+
+<h2>Double authentication test website</h2>
+
+<div>
+ Welcome to the double authentication test website.
+ <br />
+ You can log-in with the following users :<br />
+ login : "user1", password : "user1"<br />
+ login : "user2", password : "user2"<br />
+ login : "user3", password : "user3"<br />
+ <br />
+ <br />
+ In order to login with user1 and user2, you have to set up an authenticator app : Microsoft Authenticator on Windows Phone, or Google authenticator on Android and iPhone.
+ <br />
+ The secret key is "AAAAAAAAAAAAAAAA" (16 'A') for user1,
+ <br />
+ and "BBBBBBBBBBBBBBBB" (16 'B') for user 2.
+ <br />
+ user3 doesn't have double authentication enabled, so you will be able to log in directly.
+
+
+</div>
+<hr />
+
+@using (Html.BeginForm("Login", "Home", FormMethod.Post))
+{
+ <div>
+ Login :
+ <input type="text" name="login" />
+ </div>
+ <div>
+ Password :
+ <input type="password" name="password" />
+ </div>
+ <input type="submit" value="Submit" />
+} \ No newline at end of file