X-Git-Url: https://git-public.kairo.at/?p=authserver.git;a=blobdiff_plain;f=index.php;h=23a045d66bc716e8589252f8014171d59330390a;hp=be42f59e47d1ed415d260d50aed5ff0d8d94eb54;hb=b217e836543c89d872c8f692e2557c8c43da468f;hpb=e66b9a253d12638c2765e0db35be9a19ab9b2682 diff --git a/index.php b/index.php index be42f59..23a045d 100644 --- a/index.php +++ b/index.php @@ -17,6 +17,11 @@ $head->appendJSFile('authsystem.js'); $title->appendText('KaiRo.at Authentication Server'); $h1 = $body->appendElement('h1', 'KaiRo.at Authentication Server'); +// Make the document not be scaled on mobile devices. +$vpmeta = $head->appendElement('meta'); +$vpmeta->setAttribute('name', 'viewport'); +$vpmeta->setAttribute('content', 'width=device-width, height=device-height'); + $errors = $utils->checkForSecureConnection(); $utils->sendSecurityHeaders(); @@ -35,7 +40,7 @@ if (!count($errors)) { $result = $db->prepare('UPDATE `auth_sessions` SET `logged_in` = FALSE WHERE `id` = :sessid;'); if (!$result->execute(array(':sessid' => $session['id']))) { $utils->log('logout_failure', 'session: '.$session['id']); - $errors[] = _('The email address is invalid.'); + $errors[] = _('Unexpected error while logging out.'); } $session['logged_in'] = 0; }