From 79196ca3ca8a123ad2e186581fdde528c7c9d9f8 Mon Sep 17 00:00:00 2001 From: yflory Date: Mon, 26 Jan 2026 15:57:28 +0100 Subject: [PATCH] Fix incorrect error message on invalid credentials --- www/common/common-login.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/www/common/common-login.js b/www/common/common-login.js index 66ce9c034..3c21dcef7 100644 --- a/www/common/common-login.js +++ b/www/common/common-login.js @@ -123,7 +123,12 @@ define([ var legacyLogin = function (opt, isRegister, cb, res) { res = res || {}; loadUserObject(opt, function (err, rt) { - if (err) { return void cb(err); } + if (err) { + // If the channel is empty, it probably means the credentials + // are invalid + console.error(err); + return void cb('NO_SUCH_USER'); + } // if a proxy is marked as deprecated, it is because someone had a non-owned drive // but changed their password, and couldn't delete their old data.