mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-14 21:27:23 +01:00
only store necessary data for social login (continuation of 10352) (#10395)
* feat(gdpr) only store necessary data for social login * feat(gdpr) also store email for social users * fix(social auth): store emails array instead of single email * fix(emails): do not get name from old facebook info * add migration to remove extra data from social profiles * update migration description * fix tests * fix typo in migration file
This commit is contained in:
@@ -327,7 +327,13 @@ api.loginSocial = {
|
||||
} else { // Create new user
|
||||
user = {
|
||||
auth: {
|
||||
[network]: profile,
|
||||
[network]: {
|
||||
id: profile.id,
|
||||
emails: profile.emails,
|
||||
},
|
||||
},
|
||||
profile: {
|
||||
name: profile.displayName || profile.name || profile.username,
|
||||
},
|
||||
preferences: {
|
||||
language: req.language,
|
||||
|
||||
Reference in New Issue
Block a user