fixup! add google connect and disconnect to account

This commit is contained in:
Bence Pőcze 2023-09-24 01:35:48 +02:00
parent d006c6d413
commit 69c37f3ca5
Signed by: bence
GPG Key ID: DC5BD6E95A333E6D

View File

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