diff options
author | Jim Brandt <jbrandt@bestpractical.com> | 2022-08-01 23:58:41 +0300 |
---|---|---|
committer | Jim Brandt <jbrandt@bestpractical.com> | 2022-08-02 16:23:48 +0300 |
commit | 257ddf46355c916bdf86b87dd087d939da69c26a (patch) | |
tree | 7bb835c12f43d53c92154ee99c248133c067575c | |
parent | bdfe93a21ac9a96e9bf04a2e4879fb82e6a13d04 (diff) |
Add a warning as a hint to RT developers about WebSecureCookies
-rw-r--r-- | lib/RT/Config.pm | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/RT/Config.pm b/lib/RT/Config.pm index 43b5601f1a..b659fbc291 100644 --- a/lib/RT/Config.pm +++ b/lib/RT/Config.pm @@ -875,6 +875,13 @@ our %META; DevelMode => { Immutable => 1, Widget => '/Widgets/Form/Boolean', + PostLoadCheck => sub { + my $self = shift; + + if ( $self->Get('DevelMode') and $self->Get('WebSecureCookies') ) { + RT->Logger->debug('If you are doing RT development and running a dev server, disabling the $WebSecureCookies option will allow cookies to work without setting up SSL.'); + } + }, }, DisallowExecuteCode => { Immutable => 1, |