fix double check issue with login function

This commit is contained in:
Steffen Müller 2023-03-12 13:51:11 +01:00
parent 8845ad65f0
commit 8731add072

View File

@ -210,12 +210,12 @@ class User
public static function login()
{
global $message, $mysqli;
if (!isset($_POST['email']) && !isset($_POST['email']))
if (!isset($_POST['email']) && !isset($_POST['pass']))
{
return;
}
if ((!isset($_POST['email']) || !isset($_POST['email'])))
if ((!isset($_POST['email']) || !isset($_POST['pass'])))
{
$message = _("Please fill in your email and password!");
return;