[이민권] 계정 삭제
- 계정 삭제 시, Firebase 정보 삭제
This commit is contained in:
@ -873,6 +873,12 @@ func (sh *serviceDescription) delacc(w http.ResponseWriter, r *http.Request) {
|
|||||||
delop = primitive.M{
|
delop = primitive.M{
|
||||||
"$set": primitive.M{"_ts": curtime},
|
"$set": primitive.M{"_ts": curtime},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if sType == AuthPlatformFirebaseAuth {
|
||||||
|
sh.mongoClient.Delete(CollectionFirebaseUserInfo, bson.M{
|
||||||
|
"firebaseuserid": sId,
|
||||||
|
})
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
delfilter["platform"] = sType
|
delfilter["platform"] = sType
|
||||||
targetLinkId, err := sh.mongoClient.FindAll(CollectionLink, delfilter, options.Find().SetProjection(bson.M{
|
targetLinkId, err := sh.mongoClient.FindAll(CollectionLink, delfilter, options.Find().SetProjection(bson.M{
|
||||||
|
|||||||
Reference in New Issue
Block a user