File tree 1 file changed +7
-7
lines changed
module-code/app/securesocial/core/providers
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -70,21 +70,21 @@ class FacebookProvider(application: Application) extends OAuth2Provider(applicat
70
70
)
71
71
throw new AuthenticationException ()
72
72
case _ =>
73
- val userId = ( me \ Id ).as[String ]
74
- val name = ( me \ Name ).as[String ]
75
- val firstName = ( me \ FirstName ).as[String ]
76
- val lastName = ( me \ LastName ).as[String ]
77
- val picture = ( me \ Picture )
73
+ val userId = (me \ Id ).as[String ]
74
+ val name = (me \ Name ).as[String ]
75
+ val firstName = (me \ FirstName ).as[String ]
76
+ val lastName = (me \ LastName ).as[String ]
77
+ val picture = me \ Picture
78
78
val avatarUrl = (picture \ Data \ Url ).asOpt[String ]
79
- val email = ( me \ Email ).as [String ]
79
+ val email = (me \ Email ).asOpt [String ]
80
80
81
81
user.copy(
82
82
identityId = IdentityId (userId, id),
83
83
firstName = firstName,
84
84
lastName = lastName,
85
85
fullName = name,
86
86
avatarUrl = avatarUrl,
87
- email = Some ( email)
87
+ email = email
88
88
)
89
89
}
90
90
} catch {
You can’t perform that action at this time.
0 commit comments