From 9d7c3566aaaab288458544b47edf9a168980a454 Mon Sep 17 00:00:00 2001 From: Nicholas Staples Date: Wed, 6 Jan 2016 09:54:10 +0000 Subject: [PATCH] Removed validation check for unique mobile number on the system. --- app/main/forms.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/main/forms.py b/app/main/forms.py index d058995f0..0ee3d5827 100644 --- a/app/main/forms.py +++ b/app/main/forms.py @@ -55,8 +55,10 @@ class RegisterUserForm(Form): def validate_mobile_number(self, field): # Validate mobile number is unique - if field.data in self.existing_mobiles: - raise ValidationError('Mobile number already exists') + # Code to re-added later + # if field.data in self.existing_mobiles: + # raise ValidationError('Mobile number already exists') + pass class TwoFactorForm(Form):