diff options
author | Ad5001 <mail@ad5001.eu> | 2022-03-03 02:12:49 +0300 |
---|---|---|
committer | Ad5001 <mail@ad5001.eu> | 2022-03-03 19:43:13 +0300 |
commit | 4b5cdb49aed4c00a6e9b625b5d00494273a44ce3 (patch) | |
tree | 975ec988386423c2be12c92edbd251b96de13b0d /src | |
parent | db3f12f51ff15fca89aba3177423a2ed2ad3c5dd (diff) |
1. Revert "Triming IMAP and SMTP hosts on setup."
This reverts commit db3f12f51ff15fca89aba3177423a2ed2ad3c5dd.
2. Moving triming logic to javascript.
3. Apply suggestions from code review
Removing the side effect related to the text in the fields themselves being automatically trimmed.
Signed-off-by: Ad5001 <mail@ad5001.eu>
Diffstat (limited to 'src')
-rw-r--r-- | src/components/AccountForm.vue | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/components/AccountForm.vue b/src/components/AccountForm.vue index 2fa0fc265..b96678270 100644 --- a/src/components/AccountForm.vue +++ b/src/components/AccountForm.vue @@ -332,9 +332,14 @@ export default { ...this.autoConfig, }) } else { + // Removing additional whitespaces from manual configuration hosts + // In order to avoid issues when copy pasting imap & smtp hosts from providers documentations, + // which may have whitespaces. return this.save({ autoDetect: false, ...this.manualConfig, + imapHost: this.manualConfig.imapHost.trim(), + smtpHost: this.manualConfig.smtpHost.trim(), }) } }, |