Skip to content

Commit

Permalink
Update Providers.js
Browse files Browse the repository at this point in the history
don't try to parse email attribute into username

Signed-off-by: Hal Deadman <hal.deadman@gmail.com>
  • Loading branch information
hdeadman committed Nov 23, 2020
1 parent ea0b00d commit 02cf2c5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,8 @@ const getProfile = async (provider, query, callback) => {
body.strapiusername ||
body.username ||
body.nickname ||
body.name ||
body.email.split('@')[0];
body.uid ||
body.name;
const email =
body.strapiemail ||
body.email ||
Expand Down

0 comments on commit 02cf2c5

Please sign in to comment.