Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions server/flow.go
Original file line number Diff line number Diff line change
Expand Up @@ -509,8 +509,8 @@ func (fm *FlowManager) submitOAuthConfig(f *flow.Flow, submitted map[string]inte

clientID = strings.TrimSpace(clientID)

if len(clientID) != 64 {
errorList["client_id"] = "Client ID should be 64 characters long"
if len(clientID) < 64 {
errorList["client_id"] = "Client ID should be at least 64 characters long"
}

clientSecretRaw, ok := submitted["client_secret"]
Expand All @@ -524,8 +524,8 @@ func (fm *FlowManager) submitOAuthConfig(f *flow.Flow, submitted map[string]inte

clientSecret = strings.TrimSpace(clientSecret)

if len(clientSecret) != 64 {
errorList["client_secret"] = "Client Secret should be 64 characters long"
if len(clientSecret) < 64 {
errorList["client_secret"] = "Client Secret should be at least 64 characters long"
}

if len(errorList) != 0 {
Expand Down