feat: update ResponseToken method name

This commit is contained in:
weloe
2023-10-13 21:57:07 +08:00
parent 05d1bb2f34
commit c14f0e4e6e
2 changed files with 2 additions and 2 deletions

View File

@@ -203,7 +203,7 @@ func (e *Enforcer) LoginByModel(id string, loginModel *model.Login, ctx ctx.Cont
}
// response token
err = e.responseToken(tokenValue, loginModel, ctx)
err = e.ResponseToken(tokenValue, loginModel, ctx)
if err != nil {
return "", err
}

View File

@@ -49,7 +49,7 @@ func (e *Enforcer) createLoginToken(id string, loginModel *model.Login) (string,
}
// ResponseToken set token to cookie or header
func (e *Enforcer) responseToken(tokenValue string, loginModel *model.Login, ctx ctx.Context) error {
func (e *Enforcer) ResponseToken(tokenValue string, loginModel *model.Login, ctx ctx.Context) error {
if ctx == nil {
return nil
}