Post by mattalt » Wed Dec 31, 2014 10:29 pm

Does anyone know can I remove the Autocomplete from the admin page?

New member

Posts

Joined
Thu May 31, 2012 7:12 am

Post by Dhaupin » Thu Jan 01, 2015 1:34 am

Here is a simplistic vQmod that attempts to do that on front side and on admin. Should work with 1.5.5.x to 1.5.6.4. Tweak to your tastes :)

Code: Select all

<modification>

	<id><![CDATA[Kills the autofill passwords and emails for all browsers by making a autocomplete="off" tag and then some hidden fields in a seperate non-functioning form. Works in admin and store side.]]></id>
	<version><![CDATA[1.0.0]]></version>
	<vqmver><![CDATA[2.4.1]]></vqmver>
	<author><![CDATA[CreadevDotOrg]]></author>

	<file path="admin/view/template/" name="sale/affiliate_form.tpl,sale/customer_form.tpl,user/user_form.tpl">

		<operation info="ADMIN turns autocomplete off on password forms">
			<search position="replace"><![CDATA[
				<form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data" id="form">
			]]></search>
			<add><![CDATA[
				<form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data" id="form" autocomplete="off">
			]]></add>
		</operation>
		<operation info="ADMIN fake hidden autocomplete field for chrome">
			<search position="before"><![CDATA[
				</form>
			]]></search>
			<add><![CDATA[
				<!-- Fake form to wipe autocomplete fields -->
				<input style="display:none" type="text" name="fake_username"/>
				<input style="display:none" type="password" name="fake_password"/>
			]]></add>
		</operation>
		<operation info="ADMIN fake hidden autocomplete field for chrome">
			<search position="after"><![CDATA[
				</form>
			]]></search>
			<add><![CDATA[
				<p style="color: #808080;">** Autofill Password Killer for Chrome is currently active. If you notice any issues saving this page, please contact your admin.</p>
			]]></add>
		</operation>

	</file>
	<file path="catalog/view/theme/default/template/" name="account/register.tpl,affiliate/register.tpl">

		<!--<operation info="STORE turns autocomplete off on password forms">
			<search position="replace"><![CDATA[
				<form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data">
			]]></search>
			<add><![CDATA[
				<form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data" autocomplete="off">
			]]></add>
		</operation>-->
		<operation info="STORE fake hidden autocomplete field for chrome">
			<search position="before"><![CDATA[
				</form>
			]]></search>
			<add><![CDATA[
				<!-- Fake form to wipe autocomplete fields -->
				<input style="display:none" type="text" name="fake_username"/>
				<input style="display:none" type="password" name="fake_password"/>
			]]></add>
		</operation>

	</file>

</modification>

https://creadev.org | support@creadev.org - Opencart Extensions, Integrations, & Development. Made in the USA.


User avatar
Active Member

Posts

Joined
Tue May 13, 2014 3:45 am
Location - PA

Post by mattalt » Thu Jan 01, 2015 3:33 am

Thanks! I need it for OC 2.0.1.1. Do you know how to do it?

New member

Posts

Joined
Thu May 31, 2012 7:12 am

Post by mattalt » Thu Jan 01, 2015 3:34 am

and also on the Product Form. Thanks!

New member

Posts

Joined
Thu May 31, 2012 7:12 am

Post by justcurious » Thu Jan 01, 2015 4:17 am


Google Product Feed - Get your products into Google Shopping. Includes a bulk update facility.
Backup Pro - Backup (on demand or scheduled), Restore and Clone your store.
Freestyle Box - Add multiple information boxes on multiple pages of your store. Includes optional "Code Mode".
View my other extensions


User avatar
Active Member

Posts

Joined
Sat Dec 24, 2011 4:36 pm
Location - UK
Who is online

Users browsing this forum: mioduz and 26 guests