mirror of
https://github.com/discourse/discourse.git
synced 2026-08-09 04:28:29 -05:00
Support for per-user API keys
This commit is contained in:
+2
-4
@@ -1,8 +1,6 @@
|
||||
desc "generate api key if missing, return existing if already there"
|
||||
task "api_key:get" => :environment do
|
||||
if SiteSetting.api_key.blank?
|
||||
SiteSetting.generate_api_key!
|
||||
end
|
||||
api_key = ApiKey.create_master_key
|
||||
|
||||
puts SiteSetting.api_key
|
||||
puts api_key.key
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user