mirror of
https://github.com/go-micro/go-micro.git
synced 2025-06-30 22:33:49 +02:00
gen account on base32 decode failure (#1269)
This commit is contained in:
@ -104,7 +104,7 @@ func (n *memory) Verify(token string) (*Account, error) {
|
||||
// decode the token otherwise
|
||||
b, err := base32.StdEncoding.DecodeString(token)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
return genAccount(""), nil
|
||||
}
|
||||
|
||||
// return a pseudo account based on token/id
|
||||
|
Reference in New Issue
Block a user