~fkooman/vpn-user-portal

ref: 57df62b9a04e9b2391ca809e5ff9d76e524eceb1 vpn-user-portal/views/authorizeOAuthClient.php -rw-r--r-- 1.2 KiB
57df62b9François Kooman update CHANGES 1 year, 4 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php $this->layout('base', ['pageTitle' => $this->t('Approve Application')]); ?>
<?php $this->start('content'); ?>
    <div class="appAuth">
    <p>
<?=$this->t('An application attempts to establish a VPN connection.'); ?>
    </p>

	<p class="warning">
<?=$this->t('Only approve this when you are trying to establish a VPN connection with this application!'); ?>
	</p>

    <div class="appApproval">
<?php if (null === $display_name): ?>
        <span class="<?=$this->e($client_id); ?>"><?=$this->e($client_id); ?></span>
<?php else: ?>
        <span class="<?=$this->e($client_id); ?>"><?=$this->e($display_name); ?></span>
<?php endif; ?>
        <form class="frm" method="post">
            <fieldset>
                <button type="submit" name="approve" value="yes"><?=$this->t('Approve'); ?></button>
            </fieldset>
        </form>
    </div>

    <details>
        <summary>
<?=$this->t('Why is this necessary?'); ?>
        </summary>
        <p>
<?=$this->t('To prevent malicious applications from secretly establishing a VPN connection on your behalf, you have to explicitly approve this application first.'); ?>
        </p>
    </details>
    </div>
<?php $this->stop('content'); ?>