세션 인터페이스 변경 적용

This commit is contained in:
2024-04-23 11:24:19 +09:00
parent ba19cc0006
commit 048ffa00b6
4 changed files with 5 additions and 3 deletions

View File

@ -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.Invalidate(accid)
mg.sessionProvider.RevokeAll(accid)
}
}
} else if r.Method == "DELETE" {

View File

@ -591,7 +591,7 @@ func (sh *serviceDescription) authorize_dev(w http.ResponseWriter, r *http.Reque
Accid: authinfo.Account,
})
}
sh.sessionProvider.Invalidate(authinfo.Account)
sh.sessionProvider.RevokeAll(authinfo.Account)
}
return