From f32497f143ef95264706dba27ce3e7a26d7ba6a4 Mon Sep 17 00:00:00 2001 From: Azul Date: Tue, 26 Jun 2012 18:13:22 +0200 Subject: moved the sample app to it's own subdirectory --- example/views/index.erb | 50 ++++++++++++++++++++++++++++++++++++++++++++++++ example/views/layout.erb | 27 ++++++++++++++++++++++++++ example/views/login.erb | 18 +++++++++++++++++ example/views/signup.erb | 20 +++++++++++++++++++ 4 files changed, 115 insertions(+) create mode 100644 example/views/index.erb create mode 100644 example/views/layout.erb create mode 100644 example/views/login.erb create mode 100644 example/views/signup.erb (limited to 'example/views') 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 @@ + +
+
+

1. Signup

+

+ 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. +

+
+
+

2. Login

+

+ 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. +

+
+
+

3. Verify

+

+ The server logs will tell you your password was not transmitted in clear. Never the less the server can determine wether you were authorized. +

+
+
+
+
+ <% if @user.login %> +

You are signed up as <%= @user.login %>.

+ <% end %> +
+
+ <% if @user.active %> +

You are logged in.

+ <% end %> +
+
+
+
+
+
+ <%= button_link(:signup, :primary => !@user.login) %> +
+
+ <%= button_link(:login, :primary => @user.login && !@user.active) %> +
+
+ <%= button_link(:verify, :primary => @user.active) %> +
+
+ + + + diff --git a/example/views/layout.erb b/example/views/layout.erb new file mode 100644 index 0000000..c68ac23 --- /dev/null +++ b/example/views/layout.erb @@ -0,0 +1,27 @@ + + + + + Secure remote password + + + + + +
+ +
+
+

Secure Remote Passwords

+

+ Secure remote passwords allow you to login with a password that will be unkown to the server and anyone eavesdropping +

+
+
+ + <%= yield %> + + + + + diff --git a/example/views/login.erb b/example/views/login.erb new file mode 100644 index 0000000..32a16e5 --- /dev/null +++ b/example/views/login.erb @@ -0,0 +1,18 @@ +

2. Login

+
+ Login with the user you created. +
+ + +
+ +
+ + +
+ +
+ + Cancel +
+
diff --git a/example/views/signup.erb b/example/views/signup.erb new file mode 100644 index 0000000..3a949ab --- /dev/null +++ b/example/views/signup.erb @@ -0,0 +1,20 @@ + +

1. Signup

+
+ Signup to test secure remote passwords +
+ + +
+ +
+ + +
+ +
+ + Cancel +
+
+ -- cgit v1.2.3