Commit 503ad9e5 authored by Eric's avatar Eric

[update] fix access key

parent 7d67f134
......@@ -35,7 +35,7 @@ func (ak *AccessKey) LoadAccessKeyFromStr(key string) error {
return AccessKeyNotFound
}
keySlice := strings.Split(strings.TrimSpace(key), ":")
if len(ak.Value) != 2 {
if len(keySlice) != 2 {
return AccessKeyInvalid
}
ak.Id = keySlice[0]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment