Skip to content

Commit

Permalink
fix: handle logout correctly on tokens (#1809)
Browse files Browse the repository at this point in the history
  • Loading branch information
livio-a committed Jun 3, 2021
1 parent a107bb5 commit 3dba12c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/user/repository/view/model/token.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ func (t *TokenView) AppendEventIfMyToken(event *es_models.Event) (err error) {
if err != nil {
return err
}
if view.UserAgentID == id {
if t.UserAgentID == id {
t.Deactivated = true
}
return nil
Expand Down

0 comments on commit 3dba12c

Please sign in to comment.