We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb491fb commit e05afc1Copy full SHA for e05afc1
secureauth/models.py
@@ -134,7 +134,8 @@ def get_google_url(self):
134
return get_google_url(Sign().unsign(self.code), TOTP_NAME % data)
135
136
def _code_is_valid(self, code):
137
- return check_seed(Sign().unsign(self.code), int(code))
+ if code.isdigit():
138
+ return check_seed(Sign().unsign(self.code), int(code))
139
140
def make(self):
141
if not self.code:
0 commit comments