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:
Asim Aslam
2020-02-26 13:42:32 +00:00
committed by GitHub
parent 1034837f69
commit d651b16acd
2 changed files with 92 additions and 14 deletions

View File

@@ -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