mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-09 10:49:49 -04:00
Removed validation check for unique mobile number on the system.
This commit is contained in:
@@ -55,8 +55,10 @@ class RegisterUserForm(Form):
|
|||||||
|
|
||||||
def validate_mobile_number(self, field):
|
def validate_mobile_number(self, field):
|
||||||
# Validate mobile number is unique
|
# Validate mobile number is unique
|
||||||
if field.data in self.existing_mobiles:
|
# Code to re-added later
|
||||||
raise ValidationError('Mobile number already exists')
|
# if field.data in self.existing_mobiles:
|
||||||
|
# raise ValidationError('Mobile number already exists')
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
class TwoFactorForm(Form):
|
class TwoFactorForm(Form):
|
||||||
|
|||||||
Reference in New Issue
Block a user