mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-01 13:13:22 +08:00
code simplify
This commit is contained in:
parent
18d9ab5888
commit
0b6b3b3609
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@ class Users::SessionsController < Devise::SessionsController
|
|||
# If user was redirected here from OAuth's authorize/new page (Doorkeeper
|
||||
# endpoint for authorizing an OAuth client), 3rd party sign-in buttons
|
||||
# (e.g. LinkedIn) should be hidden. See config/initializers/devise.rb.
|
||||
@oauth_authorize = true if session['oauth_authorize'] == true
|
||||
@oauth_authorize = session['oauth_authorize'] == true
|
||||
super
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue