summaryrefslogtreecommitdiffstats
path: root/TwoStepsAuthenticator.TestWebsite/Views/Home
diff options
context:
space:
mode:
Diffstat (limited to 'TwoStepsAuthenticator.TestWebsite/Views/Home')
-rw-r--r--TwoStepsAuthenticator.TestWebsite/Views/Home/DoubleAuth.cshtml16
-rw-r--r--TwoStepsAuthenticator.TestWebsite/Views/Home/Index.cshtml39
-rw-r--r--TwoStepsAuthenticator.TestWebsite/Views/Home/Welcome.cshtml10
3 files changed, 65 insertions, 0 deletions
diff --git a/TwoStepsAuthenticator.TestWebsite/Views/Home/DoubleAuth.cshtml b/TwoStepsAuthenticator.TestWebsite/Views/Home/DoubleAuth.cshtml
new file mode 100644
index 0000000..e864721
--- /dev/null
+++ b/TwoStepsAuthenticator.TestWebsite/Views/Home/DoubleAuth.cshtml
@@ -0,0 +1,16 @@
+@model TwoStepsAuthenticator.TestWebsite.Users.WebsiteUser
+
+@{
+ ViewBag.Title = "DoubleAuth";
+}
+
+<h2>DoubleAuth</h2>
+
+@using (Html.BeginForm("DoubleAuth", "Home", FormMethod.Post))
+{
+ <div>
+ <input type="text" name="code" />
+ <br />
+ <input type="submit" value="Submit"/>
+ </div>
+} \ No newline at end of file
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
diff --git a/TwoStepsAuthenticator.TestWebsite/Views/Home/Welcome.cshtml b/TwoStepsAuthenticator.TestWebsite/Views/Home/Welcome.cshtml
new file mode 100644
index 0000000..c5132a6
--- /dev/null
+++ b/TwoStepsAuthenticator.TestWebsite/Views/Home/Welcome.cshtml
@@ -0,0 +1,10 @@
+@{
+ ViewBag.Title = "Welcome";
+}
+
+<h2>Welcome</h2>
+
+You are logged in the website
+<br />
+
+@Html.ActionLink("log out", "Logout") \ No newline at end of file