mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2026-11-20 23:43:26 +03:00
add warning on setup over http connection
This commit is contained in:
1 parent
a500d2557e
commit
51320919fc
1 file changed
+18
@@ -338,6 +338,15 @@ if ($error != 0) {
|
||||
<tr>
|
||||
<td colspan="3"><h3>Change setup password</h3></td>
|
||||
</tr>
|
||||
<?php
|
||||
if (!isset($_SERVER['HTTPS'])) :
|
||||
?>
|
||||
<tr>
|
||||
<td colspan="3"><h4>Warning: connection not secure, switch to https if possible</h4></td>
|
||||
</tr>
|
||||
<?php
|
||||
endif;
|
||||
?>
|
||||
<tr>
|
||||
<td><label for="setup_password">Setup password</label></td>
|
||||
<td><input class="flat" type="password" name="setup_password" id="setup_password" value="" /></td>
|
||||
@@ -370,6 +379,15 @@ if ($error != 0) {
|
||||
<tr>
|
||||
<td colspan="3"><h3>Create superadmin account</h3></td>
|
||||
</tr>
|
||||
<?php
|
||||
if (!isset($_SERVER['HTTPS'])) :
|
||||
?>
|
||||
<tr>
|
||||
<td colspan="3"><h4>Warning: connection not secure, switch to https if possible</h4></td>
|
||||
</tr>
|
||||
<?php
|
||||
endif;
|
||||
?>
|
||||
<tr>
|
||||
<td><label for="setup_password">Setup password</label></td>
|
||||
<td><input id=setup_password class="flat" type="password" name="setup_password" value="" /></td>
|
||||
|
||||
Reference in new issue
Block a user