summaryrefslogtreecommitdiff
path: root/example/views/index.erb
diff options
context:
space:
mode:
Diffstat (limited to 'example/views/index.erb')
-rw-r--r--example/views/index.erb50
1 files changed, 50 insertions, 0 deletions
diff --git a/example/views/index.erb b/example/views/index.erb
new file mode 100644
index 0000000..48d9f71
--- /dev/null
+++ b/example/views/index.erb
@@ -0,0 +1,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.login %>
+ <h4> You are signed up as <%= @user.login %>. </h4>
+ <% end %>
+ </div>
+ <div class="span4">
+ <% if @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.login) %>
+ </div>
+ <div class="span4">
+ <%= button_link(:login, :primary => @user.login && !@user.active) %>
+ </div>
+ <div class="span4">
+ <%= button_link(:verify, :primary => @user.active) %>
+ </div>
+</div>
+
+
+
+