code simplify

This commit is contained in:
mlorb 2018-11-27 10:58:51 +01:00
parent 18d9ab5888
commit 0b6b3b3609

View file

@ -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