gen account on base32 decode failure (#1269)

This commit is contained in:
Asim Aslam 2020-02-27 16:11:05 +00:00 committed by GitHub
parent 64a5ce9607
commit e21ed3a183
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -104,7 +104,7 @@ func (n *memory) Verify(token string) (*Account, error) {
// decode the token otherwise // decode the token otherwise
b, err := base32.StdEncoding.DecodeString(token) b, err := base32.StdEncoding.DecodeString(token)
if err != nil { if err != nil {
return nil, err return genAccount(""), nil
} }
// return a pseudo account based on token/id // return a pseudo account based on token/id