Fix register form not validating properly

This commit is contained in:
grandeljay 2022-10-03 14:24:47 +02:00
parent 31fe8cd0df
commit 7fd3127d32

View file

@ -26,7 +26,7 @@ if (isset($_POST['email'], $_POST['password']) && !empty($_POST['planet'])) {
$user_email = Sanitiser::getEmail($_POST['email']);
$isHuman = false;
$planet = Sanitiser::getTitle($_POST['planet']);
$planet = strtolower(Sanitiser::getTitle($_POST['planet']));
$planetName = strtoupper($planet[0]) . substr($planet, 1);
$planets = array(
strtolower(__('Mercury')),