From 8f4253adbde5911afdb5e9dd7890360b89c217b4 Mon Sep 17 00:00:00 2001 From: Ozzieisaacs Date: Sat, 18 Jan 2020 10:32:09 +0100 Subject: [PATCH] Fix for limiting domains (now no restriction to domain only) --- cps/helper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cps/helper.py b/cps/helper.py index ff6fbb98..61058f53 100644 --- a/cps/helper.py +++ b/cps/helper.py @@ -700,7 +700,7 @@ def speaking_language(languages=None): # example SELECT * FROM @TABLE WHERE 'abcdefg' LIKE Name; # from https://code.luasoftware.com/tutorials/flask/execute-raw-sql-in-flask-sqlalchemy/ def check_valid_domain(domain_text): - domain_text = domain_text.split('@', 1)[-1].lower() + # domain_text = domain_text.split('@', 1)[-1].lower() sql = "SELECT * FROM registration WHERE (:domain LIKE domain and allow = 1);" result = ub.session.query(ub.Registration).from_statement(text(sql)).params(domain=domain_text).all() if not len(result):