Changeset View
Changeset View
Standalone View
Standalone View
src/applications/auth/provider/PhabricatorAuthProvider.php
Show First 20 Lines • Show All 432 Lines • ▼ Show 20 Lines | $button = id(new PHUIButtonView()) | ||||
->setSize(PHUIButtonView::BIG) | ->setSize(PHUIButtonView::BIG) | ||||
->setColor(PHUIButtonView::GREY) | ->setColor(PHUIButtonView::GREY) | ||||
->setIcon($icon) | ->setIcon($icon) | ||||
->setText($button_text) | ->setText($button_text) | ||||
->setSubtext($this->getProviderName()); | ->setSubtext($this->getProviderName()); | ||||
$uri = $attributes['uri']; | $uri = $attributes['uri']; | ||||
$uri = new PhutilURI($uri); | $uri = new PhutilURI($uri); | ||||
$params = $uri->getQueryParams(); | $params = $uri->getQueryParamsAsPairList(); | ||||
$uri->setQueryParams(array()); | $uri->setQueryParams(array()); | ||||
$content = array($button); | $content = array($button); | ||||
foreach ($params as $key => $value) { | foreach ($params as $pair) { | ||||
list($key, $value) = $pair; | |||||
$content[] = phutil_tag( | $content[] = phutil_tag( | ||||
epriestley: Used Google OAuth. | |||||
'input', | 'input', | ||||
array( | array( | ||||
'type' => 'hidden', | 'type' => 'hidden', | ||||
'name' => $key, | 'name' => $key, | ||||
'value' => $value, | 'value' => $value, | ||||
)); | )); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 70 Lines • Show Last 20 Lines |
Used Google OAuth.