summaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2012-06-26 18:13:22 +0200
committerAzul <azul@leap.se>2012-06-26 18:13:22 +0200
commitf32497f143ef95264706dba27ce3e7a26d7ba6a4 (patch)
treed7296bdc0522206ad957c8131b4e4bb6fbbffb79 /views
parentfb5ea9059647ca8ee5cea568f47551da547b70f7 (diff)
moved the sample app to it's own subdirectory
Diffstat (limited to 'views')
-rw-r--r--views/index.erb50
-rw-r--r--views/layout.erb27
-rw-r--r--views/login.erb18
-rw-r--r--views/signup.erb20
4 files changed, 0 insertions, 115 deletions
diff --git a/views/index.erb b/views/index.erb
deleted file mode 100644
index 48d9f71..0000000
--- a/views/index.erb
+++ /dev/null
@@ -1,50 +0,0 @@
-
-<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>
-
-
-
-
diff --git a/views/layout.erb b/views/layout.erb
deleted file mode 100644
index c68ac23..0000000
--- a/views/layout.erb
+++ /dev/null
@@ -1,27 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
- <meta charset="utf-8" />
- <title>Secure remote password</title>
- <link rel="stylesheet" type="text/css" href="bootstrap.min.css" />
- <link rel="stylesheet" type="text/css" href="bootstrap-responsive.min.css" />
-</head>
-<body>
-
- <div class="container">
-
- <div class="row-fluid">
- <div class="hero-unit span12">
- <h1>Secure Remote Passwords</h1>
- <p>
- Secure remote passwords allow you to login with a password that will be unkown to the server and anyone eavesdropping
- </p>
- </div>
- </div>
-
- <%= yield %>
-
- <script type="text/javascript" src="srp.js"> </script>
-
- </body>
-</html>
diff --git a/views/login.erb b/views/login.erb
deleted file mode 100644
index 32a16e5..0000000
--- a/views/login.erb
+++ /dev/null
@@ -1,18 +0,0 @@
-<h2>2. Login</h2>
-<form class="form-horizontal" action="/login" method="POST">
- <legend>Login with the user you <a href="/signup.html">created</a>.</legend>
- <div class="control-group">
- <label class="control-label" for="login">Login</label>
- <input type="text" class"input-xlarge" name="login"></input>
- </div>
-
- <div class="control-group">
- <label class="control-label" for="password">Password</label>
- <input type="password" class"input-xlarge" name="password"></input>
- </div>
-
- <div class="form-actions">
- <button type="submit" class="btn btn-primary">Login</button>
- <a href="/" class="btn">Cancel</a>
- </div>
-</form>
diff --git a/views/signup.erb b/views/signup.erb
deleted file mode 100644
index 3a949ab..0000000
--- a/views/signup.erb
+++ /dev/null
@@ -1,20 +0,0 @@
-
-<h2>1. Signup</h2>
-<form class="form-horizontal" action="/signup" method="POST">
- <legend>Signup to test secure remote passwords</legend>
- <div class="control-group">
- <label class="control-label" for="login">Login</label>
- <input type="text" class"input-xlarge" name="login"></input>
- </div>
-
- <div class="control-group">
- <label class="control-label" for="password">Password</label>
- <input type="password" class"input-xlarge" name="password"></input>
- </div>
-
- <div class="form-actions">
- <button type="submit" class="btn btn-primary">Signup</button>
- <a href="/" class="btn">Cancel</a>
- </div>
-</form>
-