fixed error with case sensitive email entries

This commit is contained in:
Faiz Ahmed
2021-08-04 19:24:08 -04:00
parent 40c8e97f29
commit be77f5e76c

View File

@@ -66,7 +66,7 @@ def plexremoveinvite(plex, plexname):
'''
def verifyemail(addressToVerify):
regex = '^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,})$'
match = re.match(regex, addressToVerify)
match = re.match(regex, addressToVerify.lower())
if match == None:
return False
else: