Skip to content

Commit

Permalink
Incidencia - Emails - Evitar que se autocomplete la contraseña (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
ManuSinergiaCRM authored Feb 19, 2024
1 parent a440862 commit 39c9c8d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion modules/EmailMan/tpls/config.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,11 @@ 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'>
<!-- STIC-Custom - MHP - 20250125 - Prevent password autofill
https://github.com/SinergiaTIC/SinergiaCRM/pull/85
<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" />
<!-- END STIC-Custom -->
<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
6 changes: 5 additions & 1 deletion modules/OutboundEmailAccounts/OutboundEmailAccounts.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,11 @@ public static function getPasswordChange()
}
</script>
<div id="password_toggle" style="display:none;">
<input type="password" id="mail_smtppass" name="mail_smtppass" />
<!-- STIC-Custom - MHP - 20250125 - Prevent password autofill
https://github.com/SinergiaTIC/SinergiaCRM/pull/85
<input type="password" id="mail_smtppass" name="mail_smtppass" /> -->
<input type="password" id="mail_smtppass" name="mail_smtppass" autocomplete="new-password" />
<!-- END STIC-Custom -->
</div>
<a href="javascript:;" onclick="passwordToggle(this, '#password_toggle');">{$mod_strings['LBL_CHANGE_PASSWORD']}</a>
Expand Down

0 comments on commit 39c9c8d

Please sign in to comment.