apps/federation/lib/DbHandler.php
/**
	 * write token to database. Token is used to exchange the secret
	 *
	 * @param string $url
	 * @param string $token
	 */
write token to database. Token is used to exchange the secret
@param string $url
@param string $token
write token to database . Token is used to exchange the secret @param string $url @param string $token
public function addToken($url, $token) {
		$hash = $this->hash($url);
		$query = $this->connection->getQueryBuilder();
		$query->update($this->dbTable)
			->set('token', $query->createParameter('token'))
			->where($query->expr()->eq('url_hash', $query->createParameter('url_hash')))
			->setParameter('url_hash', $hash)
			->setParameter('token', $token);
		$query->execute();
	}
public function addToken ( $ url , $ token ) { $ hash = $ this -> hash ( $ url ) ; $ query = $ this -> connection -> getQueryBuilder ( ) ; $ query -> update ( $ this -> dbTable ) -> set ( 'token' , $ query -> createParameter ( 'token' ) ) -> where ( $ query -> expr ( ) -> eq ( 'url_hash' , $ query -> createParameter ( 'url_hash' ) ) ) -> setParameter ( 'url_hash' , $ hash ) -> setParameter ( 'token' , $ token ) ; $ query -> execute ( ) ; }
write token to database.
write token to database .