Projet

Général

Profil

« Précédent | Suivant » 

Révision 08f30320

Ajouté par Renato Botelho il y a presque 10 ans

Change the option for webconfig login autocomplete from opt-in to opt-out, also bump config version and write a function to keep the current status on upgrades

Voir les différences:

etc/inc/authgui.inc
264 264
					$nifty_background = "#999";
265 265
					print_info_box(gettext("You are accessing this router by an IP address not configured locally, which may be forwarded by NAT or other means. <br /><br />If you did not setup this forwarding, you may be the target of a man-in-the-middle attack.")); 
266 266
				}
267
				$noautocomplete = isset($config['system']['webgui']['noautocomplete']) ? 'autocomplete="off"' : '';
267
				$loginautocomplete = isset($config['system']['webgui']['loginautocomplete']) ? '' : 'autocomplete="off"';
268 268
			?>
269
			<form id="iform" name="iform" method="post" <?= $noautocomplete ?> action="<?=$_SERVER['SCRIPT_NAME'];?>">
269
			<form id="iform" name="iform" method="post" <?= $loginautocomplete ?> action="<?=$_SERVER['SCRIPT_NAME'];?>">
270 270
				<h1>&nbsp;</h1>
271 271
				<div id="inputerrors"><?=$_SESSION['Login_Error'];?></div>
272 272
				<p>

Formats disponibles : Unified diff