mirror of
https://github.com/discourse/discourse.git
synced 2025-05-29 01:31:35 +08:00
Simplify log in for request specs.
This commit is contained in:
@ -75,7 +75,7 @@ class SessionController < ApplicationController
|
||||
|
||||
# For use in development mode only when login options could be limited or disabled.
|
||||
# NEVER allow this to work in production.
|
||||
if Rails.env.development?
|
||||
if !Rails.env.production?
|
||||
skip_before_action :check_xhr, only: [:become]
|
||||
|
||||
def become
|
||||
|
Reference in New Issue
Block a user