diff options
author | Harrison Healey <harrisonmhealey@gmail.com> | 2016-08-15 17:38:55 -0400 |
---|---|---|
committer | enahum <nahumhbl@gmail.com> | 2016-08-15 16:38:55 -0500 |
commit | c5fc504cb26be0c2e96083c0bad6c79d278e3afc (patch) | |
tree | 5b160834ad1382ba77a5d63411817469a019862a /api/admin_test.go | |
parent | 782d5f64e7661f123be112e67037b99cea180923 (diff) | |
download | chat-c5fc504cb26be0c2e96083c0bad6c79d278e3afc.tar.gz chat-c5fc504cb26be0c2e96083c0bad6c79d278e3afc.tar.bz2 chat-c5fc504cb26be0c2e96083c0bad6c79d278e3afc.zip |
PLT-3617 Switched public file links to use a sha256 hash (#3792)
* Changed FileSettings.PublicLinkSalt to be a pointer
* Switched public file links to use a sha256 hash
Diffstat (limited to 'api/admin_test.go')
-rw-r--r-- | api/admin_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api/admin_test.go b/api/admin_test.go index a4420ccbc..013e72944 100644 --- a/api/admin_test.go +++ b/api/admin_test.go @@ -70,7 +70,7 @@ func TestGetConfig(t *testing.T) { if *cfg.LdapSettings.BindPassword != model.FAKE_SETTING && len(*cfg.LdapSettings.BindPassword) != 0 { t.Fatal("did not sanitize properly") } - if cfg.FileSettings.PublicLinkSalt != model.FAKE_SETTING { + if *cfg.FileSettings.PublicLinkSalt != model.FAKE_SETTING { t.Fatal("did not sanitize properly") } if cfg.FileSettings.AmazonS3SecretAccessKey != model.FAKE_SETTING && len(cfg.FileSettings.AmazonS3SecretAccessKey) != 0 { |