summaryrefslogtreecommitdiffstats
path: root/TwoStepsAuthenticator.TestWebsite/Views/Home/Index.cshtml
blob: 65c97de4a04fedecf2065247e3295b17b2101523 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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" />
}