Permalink
Browse files

Added regular expression for new email confirmation link.

  • Loading branch information...
1 parent 9957cdd commit a9a1247f716310da7d1ea4943bdcc1fbf6d22381 @davehunt committed Jul 25, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 browser_id.py
View
@@ -9,8 +9,9 @@
class BrowserID(object):
- VERIFY_URL_REGEX = 'https?:\/\/(\S+)\/verify_email_address\?token=(\S+)'
- RESET_URL_REGEX = 'https?:\/\/(\S+)\/reset_password\?token=(\S+)'
+ VERIFY_URL_REGEX = 'https?:\/\/(\S+)\/verify_email_address\?token=(.{48})'
+ CONFIRM_URL_REGEX = 'https?:\/\/(\S+)\/confirm\?token=(.{48})'
+ RESET_URL_REGEX = 'https?:\/\/(\S+)\/reset_password\?token=(.{48})'
INCLUDE_URL_REGEX = '(https?:\/\/(\S+))\/include\.js'
def __init__(self, sel, timeout=60):

0 comments on commit a9a1247

Please sign in to comment.