aboutsummaryrefslogtreecommitdiff
path: root/app/views/api/oauth/authorize.php
blob: 8330e9f658d1d4019d0d39c5955094f2b177b4ac (plain)
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
<section class="oauth authorize">
    <p>
        <?= sprintf(
            _('Die Applikation <strong>%s</strong> möchte auf Ihre Daten zugreifen.'),
            htmlReady($consumer->title)
        ) ?>
    </p>

    <form action="<?= $controller->url_for('api/oauth/authorize?oauth_token=' . $token) ?>" method="post">
        <input type="hidden" name="oauth_callback" value="<?= htmlReady($oauth_callback) ?>">
        <p>
            <?= Studip\Button::createAccept(_('Erlauben'), 'allow') ?>
            <?= Studip\LinkButton::createCancel(_('Verweigern'), $consumer->callback) ?>
        </p>
    </form>

    <p>
        <?= Avatar::getAvatar($GLOBALS['user']->id)->getImageTag(Avatar::SMALL) ?>

        <?= sprintf(
            _('Angemeldet als <strong>%s</strong> (%s)'),
            htmlReady($GLOBALS['user']->getFullName()),
            htmlReady($GLOBALS['user']->username)
        ) ?><br>
        <small>
            <?= sprintf(
                _('Sind sie nicht <strong>%s</strong>, so <a href="%s">melden Sie sich bitte ab</a> und versuchen es erneut.'),
                htmlReady($GLOBALS['user']->getFullName()),
                URLHelper::getLink('logout.php')
            ) ?>
        </small>
    </p>
</section>