diff --git a/application/helper.js b/application/helper.js index 98f7f87..dae48cf 100644 --- a/application/helper.js +++ b/application/helper.js @@ -249,7 +249,7 @@ class Helper { // Warn about old locked-inboxes.db if (fs.existsSync(legacyLockedInboxesDb)) { - console.log(`⚠️ Found legacy ${legacyLockedInboxesDb}`) + console.log(`WARNING: Found legacy ${legacyLockedInboxesDb}`) console.log(` This database is no longer used. Locks are now stored in ${path.basename(dbPath)}.`) console.log(` You can safely delete ${legacyLockedInboxesDb} after verifying your locks are working.`) debug('Legacy locked-inboxes.db detected but not migrated (data already in user_locked_inboxes table)') diff --git a/application/smtp-service.js b/application/smtp-service.js index 87da49e..f84aed0 100644 --- a/application/smtp-service.js +++ b/application/smtp-service.js @@ -273,7 +273,7 @@ ${mail.html}
${verificationLink}
If you didn't request this verification, you can safely ignore this email.
diff --git a/domain/user-repository.js b/domain/user-repository.js index 83aafe9..8662bf6 100644 --- a/domain/user-repository.js +++ b/domain/user-repository.js @@ -354,6 +354,100 @@ class UserRepository { return `${Math.floor(days / 365)} years` } + /** + * Verify user password + * @param {number} userId - User ID + * @param {string} password - Plain text password to verify + * @returns {PromiseWelcome back, {{ username }}
{% if successMessage %} -