Page Menu
Home
GnuPG
Search
Configure Global Search
Log In
Files
F34102755
PhortuneLandingController.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Size
588 B
Subscribers
None
PhortuneLandingController.php
View Options
<?php
final
class
PhortuneLandingController
extends
PhortuneController
{
public
function
handleRequest
(
AphrontRequest
$request
)
{
$viewer
=
$request
->
getViewer
();
$accounts
=
PhortuneAccountQuery
::
loadAccountsForUser
(
$viewer
,
PhabricatorContentSource
::
newFromRequest
(
$request
));
if
(
count
(
$accounts
)
==
1
)
{
$account
=
head
(
$accounts
);
$next_uri
=
$this
->
getApplicationURI
(
$account
->
getID
().
'/'
);
}
else
{
$next_uri
=
$this
->
getApplicationURI
(
'account/'
);
}
return
id
(
new
AphrontRedirectResponse
())->
setURI
(
$next_uri
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Thu, Dec 4, 2:09 PM (1 d, 7 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
df/c0/71813a530d9ae705183c7d87523a
Attached To
rPHAB Phabricator
Event Timeline
Log In to Comment