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.
This commit is contained in:
EOCommunity 2021-04-05 00:24:56 +02:00 committed by GitHub
parent 83ca154b7c
commit 76e2de57f7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
//var_dump($o);