For now disabling only one token for user

This commit is contained in:
qowevisa 2024-11-06 19:44:10 +02:00
parent bfa8445f78
commit a45423b5e2

View File

@ -138,7 +138,7 @@ func AddToken(id uint) (*Token, error) {
_, exists := toks.Tokmap[id] _, exists := toks.Tokmap[id]
toks.Mu.RUnlock() toks.Mu.RUnlock()
if exists { if exists {
return nil, ERROR_ALREADY_HAVE_TOKEN // return nil, ERROR_ALREADY_HAVE_TOKEN
} }
val := generateTokenVal() val := generateTokenVal()
token := &Token{ token := &Token{