Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/bestpractical/rt.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Brandt <jbrandt@bestpractical.com>2022-08-01 23:58:41 +0300
committerJim Brandt <jbrandt@bestpractical.com>2022-08-02 16:23:48 +0300
commit257ddf46355c916bdf86b87dd087d939da69c26a (patch)
tree7bb835c12f43d53c92154ee99c248133c067575c
parentbdfe93a21ac9a96e9bf04a2e4879fb82e6a13d04 (diff)
Add a warning as a hint to RT developers about WebSecureCookies
-rw-r--r--lib/RT/Config.pm7
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,