- // Display an authorization form.
- if (empty($_POST)) {
- $title->appendText('Authorization Request | KaiRo.at');
- $h1 = $body->appendElement('h1', 'KaiRo.at Authentication Server');
-
- $para = $body->appendElement('p', _('This login system does not work without JavaScript. Please activate JavaScript for this site to log in.'));
- $para->setAttribute('id', 'jswarning');
- $para->setAttribute('class', 'warn');
-
+ // Display an authorization form (unless the scope is email, which we always grant in this system).
+ if (empty($_POST) && (@$request->query['scope'] != 'email')) {