gen account on base32 decode failure (#1269)
This commit is contained in:
parent
64a5ce9607
commit
e21ed3a183
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user