From f7c89d6f607d5e5599e9c68c52b01dcd8ce38f82 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Wed, 11 Jun 2008 21:58:58 -0400 Subject: start changing default theme to work with new HTML darcs-hash:20080612015858-84dde-28a67b8a2204cd23ef2fe78ffa19ca1ded13887f.gz --- actions/updateprofile.php | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'actions') 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; + } } } -- cgit v1.2.3-54-g00ecf