From a45423b5e22e08578d343065c13467cb266276e6 Mon Sep 17 00:00:00 2001 From: qowevisa Date: Wed, 6 Nov 2024 19:44:10 +0200 Subject: [PATCH] For now disabling only one token for user --- tokens/dispatcher.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tokens/dispatcher.go b/tokens/dispatcher.go index c1b84e9..9443735 100644 --- a/tokens/dispatcher.go +++ b/tokens/dispatcher.go @@ -138,7 +138,7 @@ func AddToken(id uint) (*Token, error) { _, exists := toks.Tokmap[id] toks.Mu.RUnlock() if exists { - return nil, ERROR_ALREADY_HAVE_TOKEN + // return nil, ERROR_ALREADY_HAVE_TOKEN } val := generateTokenVal() token := &Token{