Revert "Session에 email도 저장해둔다. 필요할때 꺼내줄 api만들 예정"
This reverts commit 2165a4400b.
This commit is contained in:
@ -587,7 +587,6 @@ func (mg *Maingate) setUserToken(info usertokeninfo) error {
|
||||
"lastupdate": time.Now().Unix(),
|
||||
"accesstoken": info.accesstoken,
|
||||
"accesstoken_expire_time": info.accesstoken_expire_time,
|
||||
"email": info.email,
|
||||
},
|
||||
}, options.Update().SetUpsert(true))
|
||||
return logger.ErrorWithCallStack(err)
|
||||
@ -640,11 +639,6 @@ func (mg *Maingate) getUserTokenWithCheck(platform string, userid string, brinfo
|
||||
info.accesstoken_expire_time = accesstoken_expire_time.(int64)
|
||||
}
|
||||
|
||||
email := found["email"]
|
||||
if email != nil {
|
||||
info.email = email.(string)
|
||||
}
|
||||
|
||||
return info, nil
|
||||
}
|
||||
|
||||
@ -682,10 +676,6 @@ func (mg *Maingate) updateUserinfo(info usertokeninfo) (bool, string, string) {
|
||||
return false, "", ""
|
||||
}
|
||||
|
||||
if !(strings.HasPrefix("email", "__dummy_") && strings.HasSuffix("email", "temp__")) {
|
||||
info.email = email
|
||||
}
|
||||
|
||||
mg.setUserToken(info)
|
||||
|
||||
return success, userid, email
|
||||
|
||||
Reference in New Issue
Block a user