summaryrefslogtreecommitdiff
path: root/actions/apioauthpin.php
diff options
context:
space:
mode:
authorZach Copley <zach@status.net>2010-10-07 13:51:47 -0700
committerZach Copley <zach@status.net>2010-10-07 13:51:47 -0700
commitb8f2cc4e6f121f4ffacefb6fe632beb3b25eb126 (patch)
tree3175e669c8baeea67ab1845102db4b9e339fe3c3 /actions/apioauthpin.php
parent82a0a1a74b9452fbc122fed9ee9c4e0a86b7a79e (diff)
Make the verifier pin display a little nicer
Diffstat (limited to 'actions/apioauthpin.php')
-rw-r--r--actions/apioauthpin.php16
1 files changed, 7 insertions, 9 deletions
diff --git a/actions/apioauthpin.php b/actions/apioauthpin.php
index 5a88b5e59..5e6713a54 100644
--- a/actions/apioauthpin.php
+++ b/actions/apioauthpin.php
@@ -36,6 +36,8 @@ require_once INSTALLDIR . '/lib/info.php';
/**
* Class for displaying an OAuth verifier pin
*
+ * XXX: I'm pretty sure we don't need to check the logged in state here. -- Zach
+ *
* @category Action
* @package StatusNet
* @author Zach Copley <zach@status.net>
@@ -45,16 +47,13 @@ require_once INSTALLDIR . '/lib/info.php';
class ApiOauthPinAction extends InfoAction
{
-
- function __construct($verifier)
+ function __construct($title, $message, $verifier)
{
$this->verifier = $verifier;
- $title = _('Authorization succeeded.');
- parent::__construct($title, $title);
+ $this->title = $title;
+ parent::__construct($title, $message);
}
- // TODO: Check for logged in state!
-
/**
* Display content.
*
@@ -62,8 +61,7 @@ class ApiOauthPinAction extends InfoAction
*/
function showContent()
{
- // XXX: make this much nicer
- $this->element('div', array('class' => 'info'), $this->verifier);
+ $this->element('div', array('class' => 'info'), $this->message);
+ $this->element('div', array('id' => 'oauth_pin'), $this->verifier);
}
-
}