* @param string $host
* @param int $userId
*
- * @return null|array
+ * @return array|null
*/
public function findOneByHostAndUser($host, $userId)
{
return;
}
- // decrypt password before returning it
+ // decrypt user & password before returning them
+ $res['username'] = $this->cryptoProxy->decrypt($res['username']);
$res['password'] = $this->cryptoProxy->decrypt($res['password']);
return $res;