diff options
author | Derrick Anderson <derrick@andersonwebstudio.com> | 2018-02-09 12:59:56 -0500 |
---|---|---|
committer | Derrick Anderson <derrick@andersonwebstudio.com> | 2018-02-09 12:59:56 -0500 |
commit | e7b084842a4d371ac3ac1feab952d19524e607d3 (patch) | |
tree | 3de12b96c34194c7d1231c58533056ffe0455677 /model | |
parent | a6309aaf48e216fe5f6779188071d4b621b643b6 (diff) | |
parent | 9bf23ece6c247fb04a57127260de4608c433daa5 (diff) | |
download | chat-e7b084842a4d371ac3ac1feab952d19524e607d3.tar.gz chat-e7b084842a4d371ac3ac1feab952d19524e607d3.tar.bz2 chat-e7b084842a4d371ac3ac1feab952d19524e607d3.zip |
Merge branch 'release-4.7'
Diffstat (limited to 'model')
-rw-r--r-- | model/authorize.go | 2 | ||||
-rw-r--r-- | model/authorize_test.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/model/authorize.go b/model/authorize.go index 2296e7e22..9fd5afa70 100644 --- a/model/authorize.go +++ b/model/authorize.go @@ -62,7 +62,7 @@ func (ad *AuthData) IsValid() *AppError { return NewAppError("AuthData.IsValid", "model.authorize.is_valid.redirect_uri.app_error", nil, "client_id="+ad.ClientId, http.StatusBadRequest) } - if len(ad.State) > 128 { + if len(ad.State) > 1024 { return NewAppError("AuthData.IsValid", "model.authorize.is_valid.state.app_error", nil, "client_id="+ad.ClientId, http.StatusBadRequest) } diff --git a/model/authorize_test.go b/model/authorize_test.go index 3f43a4fc3..81e059305 100644 --- a/model/authorize_test.go +++ b/model/authorize_test.go @@ -115,7 +115,7 @@ func TestAuthIsValid(t *testing.T) { t.Fatal(err) } - ad.Scope = NewRandomString(129) + ad.Scope = NewRandomString(1025) if err := ad.IsValid(); err == nil { t.Fatal("Should have failed invalid Scope") } |