forked from saurabh/orbit4-5
fixed omniauth
This commit is contained in:
parent
52c78856be
commit
fb8c8d4526
|
@ -1,7 +1,7 @@
|
|||
OmniAuth.config.logger = Rails.logger
|
||||
|
||||
|
||||
site = Site.first
|
||||
site = Site.first rescue nil
|
||||
if !site.nil?
|
||||
client_id = site.google_client_id
|
||||
client_secret = site.google_client_secret
|
||||
|
||||
|
@ -13,3 +13,4 @@ else
|
|||
site.google_oauth_enabled = false
|
||||
site.save
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue