Skip to content

Commit

Permalink
fix: removed unnecesary command in AUTH
Browse files Browse the repository at this point in the history
  • Loading branch information
titanism committed Feb 22, 2024
1 parent 08b4db0 commit 5b792ee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion helpers/on-auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ const getQueryResponse = require('#helpers/get-query-response');
const i18n = require('#helpers/i18n');
const isValidPassword = require('#helpers/is-valid-password');
const onConnect = require('#helpers/smtp/on-connect');
const refreshSession = require('#helpers/refresh-session');
const { encrypt } = require('#helpers/encrypt-decrypt');

const onConnectPromise = pify(onConnect);
Expand Down Expand Up @@ -424,6 +423,7 @@ async function onAuth(auth, session, fn) {

// if we're on IMAP/POP3/CalDAV then ensure that the password can open the database
// TODO: probably should throw Invalid password error if it matches SQLITE not a db error (?)
/*
try {
await refreshSession.call(
this,
Expand All @@ -438,6 +438,7 @@ async function onAuth(auth, session, fn) {
err.isCodeBug = true;
this.logger.fatal(err);
}
*/

//
// sync with tmp db in the background
Expand Down

0 comments on commit 5b792ee

Please sign in to comment.