summaryrefslogtreecommitdiffstats
path: root/store
diff options
context:
space:
mode:
authorenahum <nahumhbl@gmail.com>2016-08-30 21:15:40 -0300
committerGitHub <noreply@github.com>2016-08-30 21:15:40 -0300
commit1326ab66a141e73f1ef7d9d39bb86596f56179e0 (patch)
treeb77723b70bdcfc2bca2ab47580d86eb54a61cd44 /store
parente9bc77a8f7f07cb08038e007c52a986cf4b9545b (diff)
downloadchat-1326ab66a141e73f1ef7d9d39bb86596f56179e0.tar.gz
chat-1326ab66a141e73f1ef7d9d39bb86596f56179e0.tar.bz2
chat-1326ab66a141e73f1ef7d9d39bb86596f56179e0.zip
PLT-3984 Add the ability to regenerate OAuth Client Secret (#3899)
Diffstat (limited to 'store')
-rw-r--r--store/sql_oauth_store.go1
-rw-r--r--store/sql_oauth_store_test.go3
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")
}