mapguesser/views/account/google_authenticate.php

29 lines
864 B
PHP
Raw Permalink Normal View History

2020-06-28 19:32:30 +02:00
@js(js/account/google_authenticate.js)
2020-06-28 19:32:30 +02:00
@extends(templates/layout_minimal)
2020-06-28 19:32:30 +02:00
@section(main)
<h2>Authenticate with Google</h2>
<?php if (!$success): ?>
<div class="box">
<p class="error justify">
<?php if (isset($errorText)): ?>
<?= $errorText ?>
<?php else: ?>
Authentication with Google failed.
<?php endif; ?>
Please <a id="closeWindowButton" href="javascript:;" title="Close">close this window/tab</a> and try again!
</p>
</div>
<?php endif; ?>
@endsection
2020-06-28 19:32:30 +02:00
@section(pageScript)
<script>
var success = <?= $success ? 'true' : 'false' ?>;
<?php if (isset($authenticatedWithGoogleUntil)): ?>
var authenticatedWithGoogleUntil = new Date('<?= $authenticatedWithGoogleUntil->format('c') ?>');
<?php endif; ?>
</script>
@endsection