세션 되돌림
This commit is contained in:
@ -201,7 +201,7 @@ func (caller apiCaller) blockAPI(w http.ResponseWriter, r *http.Request) error {
|
||||
|
||||
bi.Accid = accid
|
||||
caller.mg.bl.add(&bi)
|
||||
mg.sessionProvider.Revoke(accid)
|
||||
mg.sessionProvider.RevokeAll(accid)
|
||||
}
|
||||
}
|
||||
} else if r.Method == "DELETE" {
|
||||
|
||||
@ -681,7 +681,7 @@ func (sh *serviceDescription) authorize_dev(w http.ResponseWriter, r *http.Reque
|
||||
Accid: authinfo.Account,
|
||||
})
|
||||
}
|
||||
sh.sessionProvider.Revoke(authinfo.Account)
|
||||
sh.sessionProvider.RevokeAll(authinfo.Account)
|
||||
}
|
||||
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user