diff options
Diffstat (limited to 'store')
-rw-r--r-- | store/sql_oauth_store.go | 1 | ||||
-rw-r--r-- | store/sql_oauth_store_test.go | 3 |
2 files changed, 0 insertions, 4 deletions
diff --git a/store/sql_oauth_store.go b/store/sql_oauth_store.go index 4a15d4f80..c162f36b4 100644 --- a/store/sql_oauth_store.go +++ b/store/sql_oauth_store.go @@ -111,7 +111,6 @@ func (as SqlOAuthStore) UpdateApp(app *model.OAuthApp) StoreChannel { } else { oldApp := oldAppResult.(*model.OAuthApp) app.CreateAt = oldApp.CreateAt - app.ClientSecret = oldApp.ClientSecret app.CreatorId = oldApp.CreatorId if count, err := as.GetMaster().Update(app); err != nil { diff --git a/store/sql_oauth_store_test.go b/store/sql_oauth_store_test.go index ebf9ad59b..b9bde5be3 100644 --- a/store/sql_oauth_store_test.go +++ b/store/sql_oauth_store_test.go @@ -69,9 +69,6 @@ func TestOAuthStoreUpdateApp(t *testing.T) { if ua1.CreateAt == 1 { t.Fatal("create at should not have updated") } - if ua1.ClientSecret == "pwd" { - t.Fatal("client secret should not have updated") - } if ua1.CreatorId == "12345678901234567890123456" { t.Fatal("creator id should not have updated") } |