summaryrefslogtreecommitdiff
path: root/example/views/index.erb
blob: 24d2501348d811a21212c4706c8516c3d6414a19 (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
40
41
42
43
44
45
46
47
48
49
50

<div class="row-fluid">
  <div class="span4">
    <h2>1. Signup</h2>
    <p>
    First you signup just like normal. Your browser runs a bit of javascript and does not transfer your password but some validator based on it.
    </p>
  </div>
  <div class="span4">
    <h2>2. Login</h2>
    <p>
    Login using the same credentials. Again javascript is used to calculate a random number and a key based on it that the server then uses to validate your password.
    </p>
  </div>
  <div class="span4">
    <h2>3. Verify</h2>
    <p>
    The server logs will tell you your password was not transmitted in clear. Never the less the server can determine wether you were authorized.
    </p>
  </div>
</div>
<div class="row-fluid">
  <div class="span4">
    <% if @user %>
      <h4> You are signed up as <%= @user.login %>. </h4>
    <% end %>
  </div>
  <div class="span4">
    <% if @user && @user.active %>
      <h4> You are logged in.</h4>
    <% end %>
  </div>
  <div class="span4">
  </div>
</div>
<div class="row-fluid">
  <div class="span4">
    <%= button_link(:signup, :primary => !@user) %>
  </div>
  <div class="span4">
    <%= button_link(:login, :primary => @user && !@user.active) %>
  </div>
  <div class="span4">
    <%= button_link(:verify, :primary => @user && @user.active) %>
  </div>
</div>