generate pseudo accounts (#1264)
* generate pseudo accounts * when you think you're being clever * return garbage pseudo account when no token
This commit is contained in:
@@ -5,6 +5,7 @@ import (
|
||||
"os"
|
||||
"os/user"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
|
||||
conf "github.com/micro/go-micro/v2/config"
|
||||
"github.com/micro/go-micro/v2/config/source/file"
|
||||
@@ -39,7 +40,9 @@ func Get(key string) (string, error) {
|
||||
}
|
||||
|
||||
// set a value
|
||||
return c.Get(key).String(""), nil
|
||||
tk := c.Get(key).String("")
|
||||
|
||||
return strings.TrimSpace(tk), nil
|
||||
}
|
||||
|
||||
// Set a value in the .micro file
|
||||
|
Reference in New Issue
Block a user