diff options
author | Evan Prodromou <evan@prodromou.name> | 2008-06-11 21:58:58 -0400 |
---|---|---|
committer | Evan Prodromou <evan@prodromou.name> | 2008-06-11 21:58:58 -0400 |
commit | f7c89d6f607d5e5599e9c68c52b01dcd8ce38f82 (patch) | |
tree | 128eacc8ba8f71b29d7841fe3620112e9e94d314 /actions/updateprofile.php | |
parent | 526a09531e183d9f2483cb1d1e2b0593c0f028a1 (diff) |
start changing default theme to work with new HTML
darcs-hash:20080612015858-84dde-28a67b8a2204cd23ef2fe78ffa19ca1ded13887f.gz
Diffstat (limited to 'actions/updateprofile.php')
-rw-r--r-- | actions/updateprofile.php | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/actions/updateprofile.php b/actions/updateprofile.php index ffbcc81c8..5e6166c5e 100644 --- a/actions/updateprofile.php +++ b/actions/updateprofile.php @@ -22,6 +22,17 @@ if (!defined('LACONICA')) { exit(1); } class UpdateprofileAction extends Action { function handle($args) { parent::handle($args); - common_server_error(_t('Not yet implemented.')); + try { + $req = OAuthRequest::from_request(); + # Note: server-to-server function! + $server = omb_oauth_server(); + list($consumer, $token) = $server->verify_request($req); + if ($this->update_profile($req, $consumer, $token)) { + print "omb_version=".OMB_VERSION_01; + } + } catch (OAuthException $e) { + common_server_error($e->getMessage()); + return; + } } } |