X-Git-Url: https://git.openstreetmap.org/potlatch2.git/blobdiff_plain/abe1c925f16a452d6a8f057233f9cd85e3e7ddee..ced5608c9608f0af199242c3baa8a9d144051445:/net/systemeD/potlatch2/save/OAuthPanel.mxml diff --git a/net/systemeD/potlatch2/save/OAuthPanel.mxml b/net/systemeD/potlatch2/save/OAuthPanel.mxml index ea8d1e1f..f972f927 100644 --- a/net/systemeD/potlatch2/save/OAuthPanel.mxml +++ b/net/systemeD/potlatch2/save/OAuthPanel.mxml @@ -4,7 +4,7 @@ layout="vertical" horizontalAlign="center" title="Authorisation Required" creationComplete="getRequestToken()" - height="250"> + height="290"> @@ -21,11 +21,14 @@ label="http://oauth.dev.openstreetmap.org/oauth/authorize?somekey" click="openURL(authoriseURL); tryAccessButton.enabled=true;"/> - Once you've authorised the access click the 'Try Access' button below + Once you've authorised the access click the 'Try Access' button below Access was denied, please check, and try again]]> + + + @@ -59,46 +62,68 @@ indeterminate="true"/> - - + + Access was denied, please check, and try again"; @@ -190,10 +220,14 @@ } private function getConsumer():OAuthConsumer { - var key:String = Connection.getParam("oauth_consumer_key", ""); - var secret:String = Connection.getParam("oauth_consumer_secret", ""); + var key:String = connection.getParam("oauth_consumer_key", ""); + var secret:String = connection.getParam("oauth_consumer_secret", ""); return new OAuthConsumer(key, secret); } + + public function pressTry():void { + getAccessToken(); + } ]]>