Vergleich inc/datahandlers/login.php - 1.8.25 - 1.8.38

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 71Zeile 71
			{
$mybb->cookies['loginattempts'] = 0;
}

			{
$mybb->cookies['loginattempts'] = 0;
}

			if($mybb->settings['failedcaptchalogincount'] > 0 && ($user['loginattempts'] > $mybb->settings['failedcaptchalogincount'] || (int)$mybb->cookies['loginattempts'] > $mybb->settings['failedcaptchalogincount']))

			if($mybb->settings['failedcaptchalogincount'] > 0 && (isset($user['loginattempts']) && $user['loginattempts'] > $mybb->settings['failedcaptchalogincount'] || (int)$mybb->cookies['loginattempts'] > $mybb->settings['failedcaptchalogincount']))

			{
$this->captcha_verified = false;
$this->verify_captcha();

			{
$this->captcha_verified = false;
$this->verify_captcha();

Zeile 128Zeile 128
	{
$this->get_login_data();


	{
$this->get_login_data();


		if(!$this->login_data['uid'])

		if(empty($this->login_data) || !$this->login_data['uid'])

		{
$this->invalid_combination();
return false;

		{
$this->invalid_combination();
return false;

Zeile 171Zeile 171

if($strict == true)
{


if($strict == true)
{

			if(!$this->login_data['salt'])
{
// Generate a salt for this user and assume the password stored in db is a plain md5 password
$password_fields = create_password($this->login_data['password']);
$this->login_data = array_merge($this->login_data, $password_fields);
$db->update_query("users", $password_fields, "uid = '{$this->login_data['uid']}'");
}


 
			if(!$this->login_data['loginkey'])
{
$this->login_data['loginkey'] = generate_loginkey();

			if(!$this->login_data['loginkey'])
{
$this->login_data['loginkey'] = generate_loginkey();