Fixed problems with pass when this pass containt blank spaces.

This commit is contained in:
m-lopez-f 2017-05-04 15:47:17 +02:00
parent 96a13fe84c
commit 1bef3ab0de
1 changed files with 4 additions and 1 deletions

View File

@ -63,7 +63,9 @@ class User {
$user = $system->getRequest('user', null);
$password = $system->getRequest('password', null);
$this->login($user, $password);
$nick = $system->safeInput($user);
$pass = $system->safeInput($password);
$this->login($nick, $pass);
}
return $this->logged;
@ -76,6 +78,7 @@ class User {
$user = $system->getRequest('user', null);
$user = $system->safeInput($user);
$password = $system->getRequest('password', null);
$password = $system->safeInput($password);
}
if (!empty($user) && !empty($password)) {