| ... | ... |
@@ -63,7 +63,7 @@ func decodeAuth(authStr string) (string, string, error) {
|
| 63 | 63 |
if n > decLen {
|
| 64 | 64 |
return "", "", fmt.Errorf("Something went wrong decoding auth config")
|
| 65 | 65 |
} |
| 66 |
- arr := strings.Split(string(decoded), ":") |
|
| 66 |
+ arr := strings.SplitN(string(decoded), ":", 2) |
|
| 67 | 67 |
if len(arr) != 2 {
|
| 68 | 68 |
return "", "", fmt.Errorf("Invalid auth configuration file")
|
| 69 | 69 |
} |