Browse Source

Update to recognise new tokens

Tokens used to start with 'M' only, that's no longer the case
pull/76/head
Naymin 8 years ago
committed by GitHub
parent
commit
04be98a806
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      disco/util/token.py

2
disco/util/token.py

@ -1,6 +1,6 @@
import re import re
TOKEN_RE = re.compile(r'M\w{23}\.[\w-]{6}\..{27}') TOKEN_RE = re.compile(r'\w{24}\.[\w-]{6}\..{27}')
def is_valid_token(token): def is_valid_token(token):

Loading…
Cancel
Save