Skip to content

Commit

Permalink
Fix salesagility#10496 - Prevent password autofill when setting up em…
Browse files Browse the repository at this point in the history
…ails
  • Loading branch information
SinergiaCRM committed Aug 7, 2024
1 parent 80ee82d commit dd62299
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions include/SugarFields/Fields/Password/EditView.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,5 @@
value='{{if isset($vardef.display) && $vardef.display == 'writeonly'}}{{else}}{{sugarvar key='value'}}{{/if}}'
title='{{$vardef.help}}'
tabindex='{{$tabindex}}'
autocomplete='{{$vardef.autocomplete}}'
{{if !empty($displayParams.accesskey)}} accesskey='{{$displayParams.accesskey}}' {{/if}}>
2 changes: 1 addition & 1 deletion modules/EmailMan/tpls/config.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ function change_state(radiobutton) {
<tr id="smtp_auth2">
<td width="20%" scope="row"><span id="mail_smtppass_label">{$MOD.LBL_MAIL_SMTPPASS}</span> <span class="required">{$APP.LBL_REQUIRED_SYMBOL}</span></td>
<td width="30%" >
<input type="password" id="mail_smtppass" name="mail_smtppass" size="25" maxlength="255" tabindex='1'>
<input type="password" id="mail_smtppass" name="mail_smtppass" size="25" maxlength="255" tabindex='1' autocomplete="new-password">
<a href="javascript:void(0)" id='mail_smtppass_link' onClick="SUGAR.util.setEmailPasswordEdit('mail_smtppass')" style="display: none">{$APP.LBL_CHANGE_PASSWORD}</a>
</td>
<td width="20%">&nbsp;</td>
Expand Down
1 change: 1 addition & 0 deletions modules/OutboundEmailAccounts/vardefs.php
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,7 @@
'importable' => false,
'exportable' => false,
'unified_search' => false,
'autocomplete' => 'new-password',
],
'mail_smtpauth_req' => [
'name' => 'mail_smtpauth_req',
Expand Down

0 comments on commit dd62299

Please sign in to comment.