[이민권] 게스트 상태에서 링크하는 경우 수정
This commit is contained in:
@ -344,11 +344,16 @@ func (sh *serviceDescription) link(w http.ResponseWriter, r *http.Request) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
_, err = sh.readProfile(oldType, oldId, bfinfo)
|
guestlink := (len(oldType) == 0)
|
||||||
if err != nil {
|
if !guestlink {
|
||||||
logger.Error("readProfile(old) failed :", err)
|
_, err = sh.readProfile(oldType, oldId, bfinfo)
|
||||||
w.WriteHeader(http.StatusBadRequest)
|
if err != nil {
|
||||||
return
|
logger.Error("readProfile(old) failed :", err)
|
||||||
|
w.WriteHeader(http.StatusBadRequest)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
logger.Println("from guest acc to real acc link : ", oldId, bfinfo, newType, newId, bfinfo)
|
||||||
}
|
}
|
||||||
|
|
||||||
email, err := sh.readProfile(newType, newId, bfinfo)
|
email, err := sh.readProfile(newType, newId, bfinfo)
|
||||||
|
|||||||
Reference in New Issue
Block a user