For now disabling only one token for user
This commit is contained in:
parent
bfa8445f78
commit
a45423b5e2
|
@ -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{
|
||||
|
|
Loading…
Reference in New Issue
Block a user