Skip to content

Commit

Permalink
return if live site
Browse files Browse the repository at this point in the history
  • Loading branch information
dunkOnIT committed Jul 30, 2024
1 parent ee6959b commit 6cae4c0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/controllers/sessions_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ class SessionsController < Devise::SessionsController
protect_from_forgery with: :exception, prepend: true

def auto_login
return if EnvConfig.WCA_LIVE_SITE?
user = Person.order("RAND()").first.user
if user && !EnvConfig.WCA_LIVE_SITE?
sign_in(user)
Expand Down

0 comments on commit 6cae4c0

Please sign in to comment.