Skip to content

Commit

Permalink
fix(login): fix error thrown when login fails for IMAP
Browse files Browse the repository at this point in the history
  • Loading branch information
emorikawa committed Jul 13, 2016
1 parent 347fcd8 commit 192f6a7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ const CreatePageForForm = (FormComponent) => {
if (err.errorTitle === "setting_update_error") {
errorMessage = 'The IMAP/SMTP servers for this account do not match our records. Please verify that any server names you entered are correct. If your IMAP/SMTP server has changed, first remove this account from N1, then try logging in again.';
}
if (err.errorTitle.includes("autodiscover") && (accountInfo.type === 'exchange')) {
if (err.errorTitle && err.errorTitle.includes("autodiscover") && (accountInfo.type === 'exchange')) {
errorFieldNames.push('eas_server_host')
errorFieldNames.push('username');
}
Expand Down

0 comments on commit 192f6a7

Please sign in to comment.