feat: update method name, add method AddTokenSign

This commit is contained in:
weloe
2023-10-31 23:01:47 +08:00
parent 3ac000db86
commit ddcf703835
3 changed files with 8 additions and 3 deletions

View File

@@ -214,7 +214,7 @@ func (e *Enforcer) LoginByModel(id string, loginModel *model.Login, ctx ctx.Cont
if session = e.GetSession(id); session == nil {
session = model.NewSession("0", "account-session", id)
}
session.AddTokenSign(&model.TokenSign{
session.AddDistinctValueTokenSign(&model.TokenSign{
Value: tokenValue,
Device: device,
})