RVRNEXT-27 add link to google connect/disconnect to account page

This commit is contained in:
Bence Pőcze 2023-05-06 19:48:54 +02:00
parent da5c2121ba
commit a877484d56
Signed by: bence
GPG Key ID: DC5BD6E95A333E6D

View File

@ -44,6 +44,18 @@
<div class="right marginTop"> <div class="right marginTop">
<button type="submit" name="submit_button" disabled>Save</button> <button type="submit" name="submit_button" disabled>Save</button>
</div> </div>
<hr>
<div class="center">
<?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>
<?php else: ?>
<?php if ($user['password'] !== null): ?>
<a class="button yellow" href="<?= Container::$routeCollection->getRoute('account.googleDisconnect')->generateLink() ?>" title="Disconnect from Google">Disconnect from Google</a>
<?php else: ?>
<p class="bold small">Your account does not have a password. Please set a password if you want to disconnect your account from Google.</p>
<?php endif; ?>
<?php endif; ?>
</div>
</form> </form>
</div> </div>
@endsection @endsection