setting on facebook user email method --- change the parameter(key) passed to get the email from map
This commit is contained in:
parent
8212e81023
commit
0fde46d274
|
@ -450,7 +450,7 @@ func processFacebookUserInfo(code string) (models.User, error) {
|
|||
userRawData := make(map[string]interface{})
|
||||
json.Unmarshal(body, &userRawData)
|
||||
|
||||
email := fmt.Sprintf("%v", userRawData["sub"])
|
||||
email := fmt.Sprintf("%v", userRawData["email"])
|
||||
|
||||
picObject := userRawData["picture"].(map[string]interface{})["data"]
|
||||
picDataObject := picObject.(map[string]interface{})
|
||||
|
|
Loading…
Reference in New Issue
Block a user