From e21ed3a183ea35a6a5f85e47c083fefec790122a Mon Sep 17 00:00:00 2001 From: Asim Aslam Date: Thu, 27 Feb 2020 16:11:05 +0000 Subject: [PATCH] gen account on base32 decode failure (#1269) --- auth/default.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auth/default.go b/auth/default.go index 36e65679..740437f1 100644 --- a/auth/default.go +++ b/auth/default.go @@ -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