Permalink
Browse files

demo two factor authentication app

  • Loading branch information...
0 parents commit bdadecdab0652e2fcd0f9d6a1fa73d5f8c774d6d @moomerman moomerman committed Jun 24, 2011
Showing with 1,407 additions and 0 deletions.
  1. +5 −0 .gitignore
  2. +15 −0 Gemfile
  3. +117 −0 Gemfile.lock
  4. +261 −0 README
  5. +7 −0 Rakefile
  6. +9 −0 app/assets/javascripts/application.js
  7. +3 −0 app/assets/javascripts/home.js.coffee
  8. +3 −0 app/assets/javascripts/sessions.js.coffee
  9. +3 −0 app/assets/javascripts/users.js.coffee
  10. +16 −0 app/assets/stylesheets/application.css
  11. +7 −0 app/assets/stylesheets/home.css.scss
  12. +7 −0 app/assets/stylesheets/sessions.css.scss
  13. +7 −0 app/assets/stylesheets/users.css.scss
  14. +31 −0 app/controllers/application_controller.rb
  15. +4 −0 app/controllers/home_controller.rb
  16. +100 −0 app/controllers/sessions_controller.rb
  17. +21 −0 app/controllers/users_controller.rb
  18. +2 −0 app/helpers/application_helper.rb
  19. +2 −0 app/helpers/home_helper.rb
  20. +2 −0 app/helpers/sessions_helper.rb
  21. +2 −0 app/helpers/users_helper.rb
  22. 0 app/mailers/.gitkeep
  23. +12 −0 app/mailers/mailer.rb
  24. 0 app/models/.gitkeep
  25. +89 −0 app/models/session.rb
  26. +11 −0 app/models/user.rb
  27. +7 −0 app/views/application/_flash_messages.html.erb
  28. +39 −0 app/views/home/index.html.erb
  29. +22 −0 app/views/layouts/application.html.erb
  30. +11 −0 app/views/sessions/confirm.html.erb
  31. +7 −0 app/views/sessions/new.html.erb
  32. +7 −0 app/views/users/new.html.erb
  33. +4 −0 config.ru
  34. +42 −0 config/application.rb
  35. +6 −0 config/boot.rb
  36. +42 −0 config/database.yml
  37. +5 −0 config/environment.rb
  38. +27 −0 config/environments/development.rb
  39. +54 −0 config/environments/production.rb
  40. +39 −0 config/environments/test.rb
  41. +7 −0 config/initializers/backtrace_silencers.rb
  42. +10 −0 config/initializers/inflections.rb
  43. +5 −0 config/initializers/mime_types.rb
  44. +7 −0 config/initializers/secret_token.rb
  45. +8 −0 config/initializers/session_store.rb
  46. +12 −0 config/initializers/wrap_parameters.rb
  47. +5 −0 config/locales/en.yml
  48. +34 −0 config/routes.rb
  49. +9 −0 db/migrate/20110617154023_create_users.rb
  50. +23 −0 db/migrate/20110617155720_create_sessions.rb
  51. +40 −0 db/schema.rb
  52. +7 −0 db/seeds.rb
  53. +2 −0 doc/README_FOR_APP
  54. 0 lib/tasks/.gitkeep
  55. 0 log/.gitkeep
  56. +26 −0 public/404.html
  57. +26 −0 public/422.html
  58. +26 −0 public/500.html
  59. 0 public/favicon.ico
  60. +5 −0 public/robots.txt
  61. +6 −0 script/rails
  62. 0 test/fixtures/.gitkeep
  63. +11 −0 test/fixtures/client_sessions.yml
  64. +11 −0 test/fixtures/users.yml
  65. 0 test/functional/.gitkeep
  66. +7 −0 test/functional/home_controller_test.rb
  67. +7 −0 test/functional/mailer_test.rb
  68. +7 −0 test/functional/sessions_controller_test.rb
  69. +7 −0 test/functional/users_controller_test.rb
  70. 0 test/integration/.gitkeep
  71. +12 −0 test/performance/browsing_test.rb
  72. +13 −0 test/test_helper.rb
  73. 0 test/unit/.gitkeep
  74. +7 −0 test/unit/client_session_test.rb
  75. +4 −0 test/unit/helpers/home_helper_test.rb
  76. +4 −0 test/unit/helpers/sessions_helper_test.rb
  77. +4 −0 test/unit/helpers/users_helper_test.rb
  78. +7 −0 test/unit/user_test.rb
  79. 0 vendor/assets/stylesheets/.gitkeep
  80. 0 vendor/plugins/.gitkeep
@@ -0,0 +1,5 @@
+.bundle
+db/*.sqlite3
+log/*.log
+tmp/
+.sass-cache/
15 Gemfile
@@ -0,0 +1,15 @@
+source 'http://rubygems.org'
+
+gem 'rails', '3.1.0.rc4'
+gem 'mysql2'
+
+gem 'sass-rails', "~> 3.1.0.rc"
+gem 'coffee-script'
+gem 'uglifier'
+gem 'jquery-rails'
+
+gem 'uuidtools'
+
+group :test do
+ gem 'turn', :require => false
+end
@@ -0,0 +1,117 @@
+GEM
+ remote: http://rubygems.org/
+ specs:
+ actionmailer (3.1.0.rc4)
+ actionpack (= 3.1.0.rc4)
+ mail (~> 2.3.0)
+ actionpack (3.1.0.rc4)
+ activemodel (= 3.1.0.rc4)
+ activesupport (= 3.1.0.rc4)
+ builder (~> 3.0.0)
+ erubis (~> 2.7.0)
+ i18n (~> 0.6)
+ rack (~> 1.3.0)
+ rack-cache (~> 1.0.1)
+ rack-mount (~> 0.8.1)
+ rack-test (~> 0.6.0)
+ sprockets (~> 2.0.0.beta.10)
+ tzinfo (~> 0.3.27)
+ activemodel (3.1.0.rc4)
+ activesupport (= 3.1.0.rc4)
+ bcrypt-ruby (~> 2.1.4)
+ builder (~> 3.0.0)
+ i18n (~> 0.6)
+ activerecord (3.1.0.rc4)
+ activemodel (= 3.1.0.rc4)
+ activesupport (= 3.1.0.rc4)
+ arel (~> 2.1.1)
+ tzinfo (~> 0.3.27)
+ activeresource (3.1.0.rc4)
+ activemodel (= 3.1.0.rc4)
+ activesupport (= 3.1.0.rc4)
+ activesupport (3.1.0.rc4)
+ multi_json (~> 1.0)
+ ansi (1.2.5)
+ arel (2.1.1)
+ bcrypt-ruby (2.1.4)
+ builder (3.0.0)
+ coffee-script (2.2.0)
+ coffee-script-source
+ execjs
+ coffee-script-source (1.1.1)
+ erubis (2.7.0)
+ execjs (1.1.3)
+ multi_json (~> 1.0)
+ hike (1.1.0)
+ i18n (0.6.0)
+ jquery-rails (1.0.11)
+ railties (~> 3.0)
+ thor (~> 0.14)
+ mail (2.3.0)
+ i18n (>= 0.4.0)
+ mime-types (~> 1.16)
+ treetop (~> 1.4.8)
+ mime-types (1.16)
+ multi_json (1.0.3)
+ mysql2 (0.3.5)
+ polyglot (0.3.1)
+ rack (1.3.0)
+ rack-cache (1.0.2)
+ rack (>= 0.4)
+ rack-mount (0.8.1)
+ rack (>= 1.0.0)
+ rack-ssl (1.3.2)
+ rack
+ rack-test (0.6.0)
+ rack (>= 1.0)
+ rails (3.1.0.rc4)
+ actionmailer (= 3.1.0.rc4)
+ actionpack (= 3.1.0.rc4)
+ activerecord (= 3.1.0.rc4)
+ activeresource (= 3.1.0.rc4)
+ activesupport (= 3.1.0.rc4)
+ bundler (~> 1.0)
+ railties (= 3.1.0.rc4)
+ railties (3.1.0.rc4)
+ actionpack (= 3.1.0.rc4)
+ activesupport (= 3.1.0.rc4)
+ rack-ssl (~> 1.3.2)
+ rake (>= 0.8.7)
+ rdoc (~> 3.4)
+ thor (~> 0.14.6)
+ rake (0.9.2)
+ rdoc (3.6.1)
+ sass (3.1.2)
+ sass-rails (3.1.0.rc.2)
+ actionpack (~> 3.1.0.rc1)
+ railties (~> 3.1.0.rc1)
+ sass (>= 3.1.2)
+ sprockets (>= 2.0.0.beta.9)
+ sprockets (2.0.0.beta.10)
+ hike (~> 1.0)
+ rack (~> 1.0)
+ tilt (!= 1.3.0, ~> 1.1)
+ thor (0.14.6)
+ tilt (1.3.2)
+ treetop (1.4.9)
+ polyglot (>= 0.3.1)
+ turn (0.8.2)
+ ansi (>= 1.2.2)
+ tzinfo (0.3.28)
+ uglifier (0.5.4)
+ execjs (>= 0.3.0)
+ multi_json (>= 1.0.2)
+ uuidtools (2.1.2)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ coffee-script
+ jquery-rails
+ mysql2
+ rails (= 3.1.0.rc4)
+ sass-rails (~> 3.1.0.rc)
+ turn
+ uglifier
+ uuidtools
Oops, something went wrong.

0 comments on commit bdadecd

Please sign in to comment.