Project

General

Profile

« Previous | Next » 

Revision d0ff9068

Added by Marc Dequènes almost 13 years ago

  • ID d0ff90685657026f9316e7455a54dc35690a97eb

[evol] created a simple logon system, protected admin pages, and added a logon indicator/link (no user management yet, only a deadend entry in the menu if admin)

View differences:

db/schema.rb
131 131
  add_index "techniques", ["name", "acronym"], :name => "nom", :unique => true
132 132
  add_index "techniques", ["name"], :name => "nom_2"
133 133

  
134
  create_table "users", :force => true do |t|
135
    t.string   "login",           :limit => 64,                     :null => false
136
    t.string   "real_name",       :limit => 256
137
    t.string   "email",           :limit => 128
138
    t.string   "hashed_password", :limit => 512,                    :null => false
139
    t.string   "salt",            :limit => 64,                     :null => false
140
    t.datetime "created_at"
141
    t.datetime "updated_at"
142
    t.boolean  "admin",                          :default => false, :null => false
143
  end
144

  
145
  add_index "users", ["login"], :name => "login", :unique => true
146
  add_index "users", ["real_name"], :name => "real_name", :unique => true
147

  
134 148
end

Also available in: Unified diff