Adjust Client Portal AAD SSO Button to be HTML rather than Javascript due to CSP blocking inline JS.

This commit is contained in:
Marcus Hill
2023-08-31 20:20:49 +01:00
parent 81029e4605
commit dd43d8fd26
+3 -1
View File
@@ -154,7 +154,9 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST' && isset($_POST['login'])) {
if (!empty($azure_client_id)) { ?>
<hr>
<div class="col text-center">
<button type="button" class="btn btn-secondary" onclick="location.href = 'login_microsoft.php';">Login with Microsoft Azure AD</button>
<a href="login_microsoft.php">
<button type="button" class="btn btn-secondary">Login with Microsoft Azure AD</button>
</a>
</div>
<?php } ?>