From 7fa4913f902457dadb1a4806ce194eb122dbc090 Mon Sep 17 00:00:00 2001 From: Nick Frazier Date: Thu, 19 Oct 2017 08:10:29 -0400 Subject: [PLT-7794] Add user access token enable/disable endpoints (#7630) * Add column to UserAccessTokens table * PLT-7794 Add user access token enable/disable endpoints * replaced eliminated global variable * updates to user_access_token_store and upgrade.go * style fix and cleanup --- model/user_access_token.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'model/user_access_token.go') diff --git a/model/user_access_token.go b/model/user_access_token.go index 090780fd0..e189ec233 100644 --- a/model/user_access_token.go +++ b/model/user_access_token.go @@ -14,6 +14,7 @@ type UserAccessToken struct { Token string `json:"token,omitempty"` UserId string `json:"user_id"` Description string `json:"description"` + IsActive bool `json:"is_active"` } func (t *UserAccessToken) IsValid() *AppError { @@ -38,6 +39,7 @@ func (t *UserAccessToken) IsValid() *AppError { func (t *UserAccessToken) PreSave() { t.Id = NewId() + t.IsActive = true } func (t *UserAccessToken) ToJson() string { -- cgit v1.2.3-1-g7c22