User votes yes

@param string $login
183160
public function castYes($login)
    {
        if ($this->currentVote) {
            $this->currentVote->castYes($login);

            $player = $this->playerStorage->getPlayerInfo($login);
            $this->dispatcher->dispatch("votemanager.voteyes", [$player, $this->currentVote]);
        }
    }
683948
protected function setGReplay($login)
    {
        if ($this->enabled->get() == false) {
            return;
        }

        $tempReplay = new IXR_Base64("");
        $this->dedimaniaService->setGReplay("", $tempReplay);

        $player = new Player();
        $player->login = $login;
        try {
            $this->factory->getConnection()->saveBestGhostsReplay($player, "exp2_temp_replay");
            $replay = new IXR_Base64(
                $this->fileSystem->getUserData()->readAndDelete(
                    "Replays".DIRECTORY_SEPARATOR."exp2_temp_replay.Replay.Gbx")
            );
            $this->dedimaniaService->setGReplay($login, $replay);
        } catch (\Exception $e) {
            $this->console->writeln('Dedimania: $f00Error while fetching GhostsReplay');
        }

    }
1036779
public function getUser(Login $login)
    {
        $user = new User();
        $user->setParams($this->params);
        $user->populate($login->getUsername(), $login->getPassword(), []);

        return $user;
    }
1154066
protected static function _shuffle($login)
    {
        $tmp = array();

        for ($i = 0; $i < strlen($login); $i++) {
            $tmp[] = $login[$i];
        }

        shuffle($tmp);

        return implode($tmp, '');
    }
266754
public function set12HourClock($login, $use12HourClock)
    {
        $query = 'INSERT INTO ' . $this->table .
            ' (login, use_12_hour_clock) VALUES (?,?) ON DUPLICATE KEY UPDATE use_12_hour_clock=?';
        $bind  = array($login, $use12HourClock, $use12HourClock);
        Db::query($query, $bind);

        return true;
    }
136210
public function login($login, $password) {
		$user = $this->findUser($login);

		if ($user) {
			$this->user = $user;
			$this->recognized = true;

			if ($this->verifyUser($user, $password)) {
				$this->authenticated = true;

				$session = $this->findSession($user);
				if ($session === null) {
					$session = $this->createSession($user);
				}

				$this->session = $session;
				return true;
			}
		}

		return false;
	}
510000
public function signUp($login)
	{
		$stmntSingup = $this->db->prepare("
			INSERT INTO login SET
				username = ?,
				email = ?,
				password = ?,
				registeredby = ?,
				salt = ?,
				confirmed = NULL,
				active = ?,
				lastlogin = NULL,
				wronglogins = 0,
				token = ?,
				tokentime = ?
		");

		$salt = $this->generateSalt();

		try {
			$this->db->beginTransaction();

			$userID = $this->db->insert($stmntSingup, array(
				isset($login->username)?$login->username:null,
				$login->email,
				isset($login->password)?$this->encryptPassword($login->password, $salt):null,
				isset($login->registeredBy)?$login->registeredBy:null,
				$salt,
				isset($login->active)?$login->active:0,
				isset($login->token)?$login->token:null,
				isset($login->token)?date('Y-m-d H:i:s'):null
			));

			if(!isset($login->rightGroups) || !is_array($login->rightGroups)) {
				$this->db->commit();
				return $userID;
			}

			$stmntRghtGrps = $this->db->prepare("
				INSERT INTO login_has_rightgroup SET
					 loginIDFK = ?
					,rightgroupIDFK = ?
					,datefrom = NOW() 
			");

			foreach($login->rightGroups as $rg) {
				$this->db->insert($stmntRghtGrps, array($userID, $rg));
			}

			$this->db->commit();

			return $userID;
		} catch(\Exception $e) {
			$this->db->rollBack();

			throw $e;
		}
	}
941841
public function setLogin($login)
    {
        $this->login = (string)$login;
        $this->ip    = null;
        $this->port  = null;
        return $this;
    }
262525
public function getUserFavoritesComments($login, $page = 1)
    {
        $this->checkPageNumber($page);

        return $this->adapter->get(sprintf('/users/%s/favorites/comments?page=%d', $login, $page));
    }
13280
public function autoLogin($username)
    {
        $this->loadCookiesFor($username);

        if (!$this->httpClient->cookie('_auth')) {
            return false;
        }

        $this->login();

        return true;
    }
869980
public function loginUser($login, $password)
    {
        
        $returnValue = (bool) false;
        try{
            $returnValue = LoginService::login($login, $password);
        }
        catch(core_kernel_users_Exception $ue){
        	common_Logger::e("A fatal error occured at user login time: " . $ue->getMessage());
        }
        return (bool) $returnValue;
    }
520532
public function getUser($login)
    {
        $this->checkAliasName($login);

        return $this->adapter->get(sprintf('/users/%s', $login));
    }
413449
public function setLanguageForUser($login, $languageCode)
    {
        Piwik::checkUserHasSuperUserAccessOrIsTheUser($login);
        Piwik::checkUserIsNotAnonymous();

        if (!$this->isLanguageAvailable($languageCode)) {
            return false;
        }

        $this->getModel()->setLanguageForUser($login, $languageCode);

        return true;
    }
1043247
public function user_login($username, $password) {
        $cached = $this->get_static_user_info();
        if (empty($cached)) {
            // This means we were called as part of a normal login flow - without using oauth.
            return false;
        }
        $verifyusername = $cached['username'];
        if ($verifyusername == $username) {
            return true;
        }
        return false;
    }
864563
public function handle(Login $event)
    {
        $event->user->last_login = date('Y-m-d H:i:s');
        $event->user->save();
    }
595232
public function castVote($login, $type)
    {
        if ($this->currentVote instanceof AbstractVotePlugin) {
            switch ($type) {
                case Vote::VOTE_YES:
                    $this->currentVote->castYes($login);
                    break;
                case Vote::VOTE_NO:
                    $this->currentVote->castNo($login);
                    break;
            }
        }
    }
1007806
public function isVisibleFor($login)
    {
        $personalVisibility = parent::isVisibleFor($login);
        if (!$personalVisibility) {
            return $personalVisibility;
        }


        foreach ($this->getChilds() as $childItem) {
            if ($childItem->isVisibleFor($login)) {
                return true;
            }
        }

        return false;
    }