# acymailing/11.0.3/WpInit/Oauth.php

AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress, version 11.0.3. 24 lines.

- Page: https://pluginprobe.com/plugins/acymailing/11.0.3/code/WpInit/Oauth.php
- Raw: https://pluginprobe.com/plugins/acymailing/11.0.3/raw/WpInit/Oauth.php
- Modified: 2026-08-03T10:18:54+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/acymailing/11.0.3/code/WpInit/Oauth.php#L10-L20`.

```php
<?php

namespace AcyMailing\WpInit;

defined('ABSPATH') || die('Restricted Access');

class Oauth
{
    public function __construct()
    {
        $code = acym_getVar('string', 'code');
        $state = acym_getVar('string', 'state');
        if (!empty($code) && !empty($state)) {
            if ($state === 'acymailingsmtp') {
                acym_redirect(acym_completeLink('configuration&auth_type=smtp&code='.$code, false, true));
            }

            if ($state === 'acymailingbounce') {
                acym_redirect(acym_completeLink('configuration&auth_type=bounce&code='.$code, false, true));
            }
        }
    }
}

```
