Просмотр исходного кода

Password fields and email from updates (#1876)

* Update SOA Minimum TTL

* Update from email field to match other emails sent

Almost all emails sent from the control panel come from noreply@domain.tld except the updates that are coming from hestia@domain.tld however this email is not monitored and should be noreply@domain.tld as well

* Added password class on password fields

To add the "eye" icon to see text instead of password and add the autocomplete="off"

* Reverting change
manuelserol 4 лет назад
Родитель
Сommit
43400776ac
2 измененных файлов с 5 добавлено и 5 удалено
  1. 1 1
      web/inc/mail-wrapper.php
  2. 4 4
      web/templates/pages/edit_server.html

+ 1 - 1
web/inc/mail-wrapper.php

@@ -27,7 +27,7 @@ if (!empty( $data['config']['LANGUAGE'])) {
 }
 
 // Define vars
-$from = 'Hestia Control Panel <hestia@'.gethostname().'>';
+$from = 'Hestia Control Panel <noreply@'.gethostname().'>';
 $to = $argv[3]."\n";
 $subject = $argv[2]."\n";
 $mailtext = file_get_contents("php://stdin");

+ 4 - 4
web/templates/pages/edit_server.html

@@ -448,7 +448,7 @@
 												</tr>
 												<tr>
 													<td>
-														<input type="text" size="20" class="vst-input" name="v_smtp_relay_pass">
+														<input type="text" size="20" class="vst-input password" name="v_smtp_relay_pass">
 													</td>
 												</tr>
 											</table>
@@ -545,7 +545,7 @@
 										</tr>
 										<tr>
 											<td class="step-left">
-												<input type="text" size="20" class="vst-input" name="v_mysql_password" value="">
+												<input type="text" size="20" class="vst-input password" name="v_mysql_password" value="">
 												<br><br>
 											</td>
 										</tr>
@@ -774,7 +774,7 @@
 															</tr>
 															<tr>
 																<td>
-																	<input type="text" size="20" class="vst-input" name="v_backup_password" value="<?=trim($v_backup_password, "'")?>">
+																	<input type="text" size="20" class="vst-input password" name="v_backup_password" value="<?=trim($v_backup_password, "'")?>">
 																	<br><br>
 																</td>
 															</tr>
@@ -1305,4 +1305,4 @@
 			</tr>
 		</table>
 	</form>
-</div>
+</div>