mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-02 11:20:18 +08:00
Add Unlink API.
This commit is contained in:
@ -195,7 +195,8 @@ func (c *ApiController) Login() {
|
||||
return
|
||||
}
|
||||
|
||||
isLinked := object.LinkUserAccount(userId, provider.Type, userInfo.Username)
|
||||
user := object.GetUser(userId)
|
||||
isLinked := object.LinkUserAccount(user, provider.Type, userInfo.Username)
|
||||
if isLinked {
|
||||
resp = &Response{Status: "ok", Msg: "", Data: isLinked}
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user