Fix not to show connection error if SSL is explicitly disabled

[no-build]
This commit is contained in:
Ilia Ross
2025-07-06 15:43:00 +03:00
parent 784b2b42e7
commit c0f886b670
2 changed files with 4 additions and 4 deletions

View File

@ -73,7 +73,7 @@ print &ui_form_start("@{[&get_webprefix()]}/pam_login.cgi", "post");
print &ui_hidden("cid", $in{'cid'});
my $not_secure;
if ($ENV{'HTTPS'} ne 'ON') {
if ($ENV{'HTTPS'} ne 'ON' && $miniserv{'ssl'}) {
my $link = ui_tag('a', "⚠ $text{'login_notsecure'}",
{ 'href' => "javascript:void(0);",
'class' => 'inherit-color',

View File

@ -93,7 +93,7 @@ print &ui_form_start("@{[&get_webprefix()]}/session_login.cgi", "post");
print &ui_hidden("page", $in{'page'});
my $not_secure;
if ($ENV{'HTTPS'} ne 'ON') {
if ($ENV{'HTTPS'} ne 'ON' && $miniserv{'ssl'}) {
my $link = ui_tag('a', "⚠ $text{'login_notsecure'}",
{ 'href' => "javascript:void(0);",
'class' => 'inherit-color',