add google connect and disconnect to account
This commit is contained in:
5 files changed
+177
-1
No files matched your search
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user