Bouke/django-two-factor-auth — pull request #60 by vitormazzi (2014-06-03 23:11:53+00:00)
Title: Always cast the token to an int before verification

If the field used to input the token is a CharField, the token value will be a string, and `PhoneDevice.verify_token` will always fail.

Casting the token to an int during the verification in order to avoid this problem. This is the same approach taken by django_otp.