##// END OF EJS Templates
Added support for HTTP Basic access to the API. (#3920)...
Added support for HTTP Basic access to the API. (#3920) A user can authenticate using either their: * username/password * api-key/random git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3219 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r3103:aa9951b38b27
r3105:e07e9d8bfed4
Show More
20091221004949_add_api_keys_for_users.rb
13 lines | 271 B | text/x-ruby | RubyLexer
/ db / migrate / 20091221004949_add_api_keys_for_users.rb
class AddApiKeysForUsers < ActiveRecord::Migration
def self.up
say_with_time("Generating API keys for active users") do
User.active.all(:include => :api_token).each do |user|
user.api_key
end
end
end
def self.down
# No-op
end
end