diff --git a/core/route/account.js b/core/route/account.js index 4ce2ea1..364316a 100644 --- a/core/route/account.js +++ b/core/route/account.js @@ -213,7 +213,7 @@ exports.initroute = (app) => { // Find matching profile by name or ticket const matchedProfileId = Object.keys(decryptedData).find(profileId => { const userProfile = decryptedData[profileId]; - return userProfile.name === content.name || userProfile.ticket === ticket; + return userProfile.name && (userProfile.name === content.name || userProfile.ticket === ticket); }); if (matchedProfileId) {