Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.

Commit c53d49e

Browse files
committed
exclude email from new identity call
1 parent ea252a5 commit c53d49e

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

actions/user.js

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -373,12 +373,15 @@ function getUserIdentityByAuth0Id(api, connection, next) {
373373
dbConnectionMap, cb);
374374
},
375375
function (rs, cb) {
376-
response = {
377-
uid: userid,
378-
handle: rs[0].handle,
379-
email: rs[0].address
380-
};
381-
cb();
376+
if (!rs[0]) {
377+
cb(notfound);
378+
} else {
379+
response = {
380+
uid: userid,
381+
handle: rs[0].handle
382+
};
383+
cb();
384+
}
382385
}
383386
], function (err) {
384387
if (err) {

0 commit comments

Comments
 (0)