mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-18 05:29:38 -04:00
Test for VerifyForm and TwoFactorForm
This commit is contained in:
@@ -71,7 +71,7 @@ class VerifyForm(Form):
|
||||
|
||||
|
||||
def validate_code(field, code):
|
||||
if code.expiry_datetime > datetime.now():
|
||||
if code.expiry_datetime <= datetime.now():
|
||||
field.errors.append('Code has expired')
|
||||
return False
|
||||
if field.data is not None:
|
||||
|
||||
Reference in New Issue
Block a user