feature/RVRNEXT-27-add-connect-with-google #50

Merged
bence merged 6 commits from feature/RVRNEXT-27-add-connect-with-google into master 2023-05-06 19:55:17 +02:00
Showing only changes of commit a877484d56 - Show all commits

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