Skip to content

Commit

Permalink
Added missing internalData object to new accounts
Browse files Browse the repository at this point in the history
  • Loading branch information
andris9 committed Apr 19, 2023
1 parent 1a800fd commit 853d983
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
12 changes: 5 additions & 7 deletions lib/api/users.js
Expand Up @@ -583,16 +583,14 @@ module.exports = (db, server, userHandler, settingsHandler) => {

let userData;
try {

let unameview = ''
if(username.includes("@")){
let unameview = '';
if (username.includes('@')) {
unameview = tools.normalizeAddress(username, false, {
removeLabel: true,
removeDots: true
})
}
else{
unameview = username.replace(/\./g, '')
});
} else {
unameview = username.replace(/\./g, '');
}

userData = await db.users.collection('users').findOne(
Expand Down
1 change: 1 addition & 0 deletions lib/user-handler.js
Expand Up @@ -1509,6 +1509,7 @@ class UserHandler {
},

metaData: data.metaData || '',
internalData: data.internalData || '',

// until setup value is not true, this account is not usable
activated: false,
Expand Down

0 comments on commit 853d983

Please sign in to comment.