def check_email_address()

in server/app/lib/utils.py [0:0]


def check_email_address(email: str) -> bool:
    parts = email.split('@')
    if len(parts) != 2: # must have just one '@'
        return False
    local, domain = parts
    return VALID_EMAIL_LOCAL.fullmatch(local) and len(domain.split('.')) > 1 and VALID_EMAIL_DOMAIN.fullmatch(domain)