add google connect and disconnect to account

This commit is contained in:
bence committed 2023-09-25 19:56:57 +02:00
1 parent ea8b46ab91
commit e18ed3a034
5 files changed
+177 -1

No files matched your search

+8 -1
View File
@@ -32,7 +32,14 @@
<button type="submit" name="submit_button" disabled>Save</button>
</div>
<hr>
<div class="center">
<div class="center" style="font-size: 0;">
<?php if ($user['google_sub'] === null): ?>
<a class="button yellow marginRight" href="<?= Container::$routeCollection->getRoute('account.googleConnect')->generateLink() ?>" title="Connect with Google">Connect with Google</a>
<?php else: ?>
<?php if ($user['password'] !== null): ?>
<a class="button yellow marginRight" href="<?= Container::$routeCollection->getRoute('account.googleDisconnect')->generateLink() ?>" title="Disconnect from Google">Disconnect from Google</a>
<?php endif; ?>
<?php endif; ?>
<a class="button red" href="/account/delete" title="Delete account">Delete account</a>
</div>
</form>