Skip to content

Commit

Permalink
new param
Browse files Browse the repository at this point in the history
  • Loading branch information
bessudnov committed Sep 23, 2019
1 parent a5a09df commit da536aa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions example.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,15 @@ class="amocrm_oauth"
data-class-name="className"
data-color="default"
data-state="' . $_SESSION['oauth2state'] . '"
data-error-callback="handleOauthError"
src="https://www.amocrm.ru/auth/button.min.js"
></script>
</div>';
echo '<script>
handleOauthError = function(event) {
alert(\'ID клиента - \' + event.client_id + \' Ошибка - \' + event.error);
}
</script>';
die;
} else {
$authorizationUrl = $provider->getAuthorizationUrl();
Expand Down

0 comments on commit da536aa

Please sign in to comment.