Skip to content

Commit 79ff729

Browse files
committed
Fix broken dummy password warning on SMTP test UI. Closes #1450.
1 parent 32b979e commit 79ff729

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

frontend/src/views/settings/smtp.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,7 @@ export default Vue.extend({
301301
this.$utils.toast(this.$t('settings.smtp.testEnterEmail'), 'is-danger');
302302
this.$nextTick(() => {
303303
const i = document.querySelector(`.password-${n}`);
304+
this.data.smtp[n].password = '';
304305
i.focus();
305306
i.select();
306307
});
@@ -331,7 +332,7 @@ export default Vue.extend({
331332
if (!item.host || !item.port) {
332333
return false;
333334
}
334-
if (item.auth_protocol !== 'none' && !item.password.trim()) {
335+
if (item.auth_protocol !== 'none' && item.password.includes('')) {
335336
return false;
336337
}
337338

i18n/en.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@
508508
"settings.smtp.sendTest": "Send e-mail",
509509
"settings.smtp.setCustomHeaders": "Set custom headers",
510510
"settings.smtp.testConnection": "Test connection",
511-
"settings.smtp.testEnterEmail": "Enter password to test",
511+
"settings.smtp.testEnterEmail": "Re-enter password to test",
512512
"settings.smtp.toEmail": "To e-mail",
513513
"settings.title": "Settings",
514514
"settings.updateAvailable": "A new update {version} is available.",

0 commit comments

Comments
 (0)