Fills password field.

@param string $password
15305
protected function fillPassword(string $password): void
    {
        $this->context->findElement($this->fields['password'], $this->defaultTimeout)->setValue($password);
    }
1205297
public function setPassword($password)
    {
        if(!$this->isValidPassword($password)){
            return false;
        }

        if ($this->setPasswordStatement === null) {
            $this->setPasswordStatement = $this->connection->prepare("UPDATE User SET password=? WHERE username=?");
            $this->setPasswordStatement->bindParam(1, $this->password);
            $this->setPasswordStatement->bindParam(2, $this->username);
        }
        $wasLoggedIn = $this->isLoggedIn();
        $this->password = $this->hashPassword($password);
        $this->setPasswordStatement->execute();

        if ($wasLoggedIn) {

            $this->updateLoginSession();
        }

        return true;
    }
409556
public function setPassword($password = null)
    {
        if (empty($password)) {
            $password = $this->getEmptyPasswordSpecialty();
        }
        $phAttribute = $this->passwordHashAttribute;
        if (empty($phAttribute) || !is_string($phAttribute)) {
            return;
        }
        $this->$phAttribute = $this->generatePasswordHash($password);
        $this->_password = $password;
        $this->trigger(static::$eventAfterSetPassword);
    }
896173
public function hash(string $password): string
    {
        if ('' === $password) {
            throw EmptyPasswordException::create();
        }

        return password_hash($password, PASSWORD_DEFAULT);
    }
827923
public function actionPassword($user, $password)
    {
        $user = $this->getUser($user);
        $user->applyForNewPassword();
        $result = $user->resetPassword($password, $user->getPasswordResetToken());
        if ($result) {
            echo "Password changed.\n";
        } else {
            echo "Password not changed.\n";
        }
        return static::EXIT_CODE_NORMAL;
    }
741605
public function setPassword($password)
    {
        if (!$this->salt) {
            $this->salt = base_convert(sha1(uniqid(mt_rand(), true)), 16, 36);
        }
        if ($password) {
            $this->password = $this->getPasswordEncoder()->encodePassword($password, $this->getSalt());
        }

        return $this;
    }
638927
public function SetRconPassword( $Password )
		{
			if( !$this->Connected )
			{
				throw new SocketException( 'Not connected.', SocketException::NOT_CONNECTED );
			}
			
			switch( $this->Socket->Engine )
			{
				case SourceQuery::GOLDSOURCE:
				{
					$this->Rcon = new GoldSourceRcon( $this->Socket );
					
					break;
				}
				case SourceQuery::SOURCE:
				{
					$this->Rcon = new SourceRcon( $this->Socket );
					
					break;
				}
			}
			
			$this->Rcon->Open( );
			$this->Rcon->Authorize( $Password );
		}
896083
public function authenticate(string $password): void
    {
        $salt     = random_bytes(10);
        $keyBasis = $password.$salt;
        $key      = hash(Protocol::PASSWORD_HASH_TYPE, $keyBasis, true);
        $keyHash  = hash(Protocol::PASSWORD_HASH_TYPE, $key);
        $this->setHeader($this->getHeader()." ".strtoupper(Protocol::PASSWORD_HASH_TYPE.":$keyHash.".bin2hex($salt)));

    }
734355
function setPassword($password)
    {
        // TODO: maso, 2017: check password
        $salt = Pluf_Utils::getRandomString(5);
        $this->password = 'sha1:' . $salt . ':' . sha1($salt . $password);
        return true;
    }
1125437
public function validatePassword(string $password): bool
    {
        return \Yii::$app->security->validatePassword($password, $this->password_hash);
    }
149819
protected function resetPassword($user, $password)
    {
        $user->password = Hash::make($password);

        $user->setRememberToken(Str::random(60));

        $user->save();

        event(new PasswordReset($user));
    }
984294
protected function setUserInfo($user, $password = null)
    {
        $this->userInfo = $user . ((null !== $password) ? (':' . $password) : '');
    }
909124
private function AddPasswordField()
    {
        $name = 'Password';
        
        $this->AddField(Input::Password($name));
        //Password needs contain lower case letter, upper case letter, and a digit
        //$validator = new RegExp('/((?=.*\d)(?=.*[a-z])(?=.*[A-Z]))/');
        //$this->AddValidator($name, $validator);
        $this->AddValidator($name, new StringLength(6, 20));
        if (Request::PostData('PasswordRepeat') || !$this->user->Exists())
        {
            $this->SetRequired($name);
        }
    }
437778
public function setPassword($value)
    {
        $this->assertValidStringLength($value, false);

        $this->password = $value;
        if ($this->password !== '') {
            $this->flags |= 128;
        } else {
            $this->flags &= ~128;
        }
    }
649536
protected static function filterPassword($password)
    {
        if ($password !== null && ! is_string($password)) {
            throw new InvalidArgumentException(sprintf(
                'Invalid user-info; password must be a string argument; received %s',
                (is_object($password) ? get_class($password) : gettype($password))
            ));
        }

        return $password;
    }
759493
public function setPassword($password)
    {
        try {
            $this->getSoapClient()->SetDocumentPassword(array(
                'password' => $password ,
            ));

            return $this;
        } catch ( SoapException $ex ) {
            throw new PasswordException('Error while setting a password for the document' , $ex);
        }
    }
402186
public function setAuthPassword( ?string $password ) : MySQL
   {

      if ( ! $this->_supportedAttributes->get( 'password' )->validateValue( $password ) )
      {
         throw new ArgumentException(
            'password', \str_repeat( '*', min( 48, \mb_strlen( $password, 'utf-8' ) ) ), 'Invalid auth password!' );
      }

      $this->_attributes[ 'password' ] = $password;

      return $this;

   }