PLT-3984 Add the ability to regenerate OAuth Client Secret (#3899)

Этот коммит содержится в:
enahum
2016-08-30 21:15:40 -03:00
коммит произвёл GitHub
родитель e9bc77a8f7
Коммит 1326ab66a1
9 изменённых файлов: 150 добавлений и 9 удалений

Просмотреть файл

@@ -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 {

Просмотреть файл

@@ -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")
}