调整Bot授权接口
This commit is contained in:
parent
c0fcf3445a
commit
1d9df770b5
|
@ -7,6 +7,7 @@ class InstallationsController < ApplicationController
|
|||
end
|
||||
|
||||
def auth_active
|
||||
begin
|
||||
@bot = Bot.find params[:id]
|
||||
@bot.client_id = Doorkeeper::OAuth::Helpers::UniqueToken.generate if params[:client_id].blank?
|
||||
@bot.client_secret = Doorkeeper::OAuth::Helpers::UniqueToken.generate if params[:client_secret].blank?
|
||||
|
|
Loading…
Reference in New Issue