mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-31 12:09:17 +08:00
fix hound
This commit is contained in:
parent
f61187dd18
commit
4052fad9e0
1 changed files with 3 additions and 2 deletions
|
@ -315,9 +315,10 @@ Devise.setup do |config|
|
|||
# so you need to do it manually. For the users scope, it would be:
|
||||
# config.omniauth_path_prefix = '/my_engine/users/auth'
|
||||
|
||||
Warden::Manager.before_failure do |env, opts|
|
||||
Warden::Manager.before_failure do |env, _opts|
|
||||
if env.key?('action_controller.instance') &&
|
||||
(cont = env['action_controller.instance']).instance_of?(Doorkeeper::AuthorizationsController) &&
|
||||
(cont = env['action_controller.instance'])
|
||||
.instance_of?(Doorkeeper::AuthorizationsController) &&
|
||||
cont.action_name == 'new'
|
||||
# pass oauth_authorize param
|
||||
env['rack.session'] ||= {}
|
||||
|
|
Loading…
Reference in a new issue