public
Clone URL: git://github.com/halorgium/mail_admin.git
Add the authenticated code
halorgium (author)
Mon Nov 26 05:06:44 -0800 2007
commit  8d2531bf7cf7f0bc1b9da949c7f519acece64675
tree    6bf021d58fb5b157d09f29209045934919731636
parent  c98253021695a39760a7b61570def78dc58259ce
...
7
8
9
 
 
 
10
...
7
8
9
10
11
12
13
0
@@ -7,4 +7,7 @@ class ApplicationController < ActionController::Base
0
   # See ActionController::RequestForgeryProtection for details
0
   # Uncomment the :secret if you're not using the cookie session store
0
   protect_from_forgery # :secret => 'db97eb52a9b504afc7dbd3392a32fcf8'
0
+
0
+ # Be sure to include AuthenticationSystem in Application Controller instead
0
+ include AuthenticatedSystem
0
 end
...
1
2
 
 
 
3
...
1
2
3
4
5
6
0
@@ -1,3 +1,6 @@
0
 # Methods added to this helper will be available to all templates in the application.
0
 module ApplicationHelper
0
+ def normal_content?
0
+ false
0
+ end
0
 end
...
1
2
 
 
3
...
1
2
3
4
5
0
@@ -1,3 +1,5 @@
0
 ActionController::Routing::Routes.draw do |map|
0
   map.resources :domains
0
+ map.resource :session
0
+ map.root :controller => 'session'
0
 end
...
9
10
11
12
 
13
14
15
...
53
54
55
 
 
 
 
 
 
 
 
 
 
 
56
...
9
10
11
 
12
13
14
15
...
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
0
@@ -9,7 +9,7 @@
0
 #
0
 # It's strongly recommended to check this file into your version control system.
0
 
0
-ActiveRecord::Schema.define(:version => 5) do
0
+ActiveRecord::Schema.define(:version => 6) do
0
 
0
   create_table "accounts", :force => true do |t|
0
     t.integer "domain_id"
0
@@ -53,4 +53,15 @@ ActiveRecord::Schema.define(:version => 5) do
0
 
0
   add_index "transports", ["name"], :name => "index_transports_on_name", :unique => true
0
 
0
+ create_table "users", :force => true do |t|
0
+ t.string "login"
0
+ t.string "email"
0
+ t.string "crypted_password", :limit => 40
0
+ t.string "salt", :limit => 40
0
+ t.datetime "created_at"
0
+ t.datetime "updated_at"
0
+ t.string "remember_token"
0
+ t.datetime "remember_token_expires_at"
0
+ end
0
+
0
 end

Comments

    No one has commented yet.