From 76e2de57f7b0b4aaf4dfd752a172c30a53cf3705 Mon Sep 17 00:00:00 2001 From: EOCommunity <80204570+EOCommunity@users.noreply.github.com> Date: Mon, 5 Apr 2021 00:24:56 +0200 Subject: [PATCH] Update api.php Let's also strtolower the email on php-side. We forced python to save emails lower-cased, so we will request emails lower-cased too. --- web/api.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/api.php b/web/api.php index 9ce78bb..eb7ebbb 100644 --- a/web/api.php +++ b/web/api.php @@ -7,8 +7,8 @@ ini_set('display_errors', 1); include_once(ROOT.DS.'inc'.DS.'core.php'); -$action = $_REQUEST['a']; -$email = $_REQUEST['email']; +$action = strtolower($_REQUEST['a']); +$email = strtolower($_REQUEST['email']); switch($action) { @@ -108,4 +108,4 @@ switch($action) } echo json_encode($o); -//var_dump($o); \ No newline at end of file +//var_dump($o);