Fix broken dummy password warning on SMTP test UI. Closes #1450.

This commit is contained in:
Kailash Nadh 2023-08-15 20:57:58 +05:30
parent 32b979eeb6
commit 79ff7293ea
2 changed files with 3 additions and 2 deletions

View file

@ -301,6 +301,7 @@ export default Vue.extend({
this.$utils.toast(this.$t('settings.smtp.testEnterEmail'), 'is-danger'); this.$utils.toast(this.$t('settings.smtp.testEnterEmail'), 'is-danger');
this.$nextTick(() => { this.$nextTick(() => {
const i = document.querySelector(`.password-${n}`); const i = document.querySelector(`.password-${n}`);
this.data.smtp[n].password = '';
i.focus(); i.focus();
i.select(); i.select();
}); });
@ -331,7 +332,7 @@ export default Vue.extend({
if (!item.host || !item.port) { if (!item.host || !item.port) {
return false; return false;
} }
if (item.auth_protocol !== 'none' && !item.password.trim()) { if (item.auth_protocol !== 'none' && item.password.includes('•')) {
return false; return false;
} }

View file

@ -508,7 +508,7 @@
"settings.smtp.sendTest": "Send e-mail", "settings.smtp.sendTest": "Send e-mail",
"settings.smtp.setCustomHeaders": "Set custom headers", "settings.smtp.setCustomHeaders": "Set custom headers",
"settings.smtp.testConnection": "Test connection", "settings.smtp.testConnection": "Test connection",
"settings.smtp.testEnterEmail": "Enter password to test", "settings.smtp.testEnterEmail": "Re-enter password to test",
"settings.smtp.toEmail": "To e-mail", "settings.smtp.toEmail": "To e-mail",
"settings.title": "Settings", "settings.title": "Settings",
"settings.updateAvailable": "A new update {version} is available.", "settings.updateAvailable": "A new update {version} is available.",