init
This commit is contained in:
44
module/intranet/qr_code.php
Normal file
44
module/intranet/qr_code.php
Normal file
@@ -0,0 +1,44 @@
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.qrcode/1.0/jquery.qrcode.min.js"></script>
|
||||
<?php
|
||||
|
||||
|
||||
|
||||
|
||||
?>
|
||||
|
||||
<div class="qr-code-container">
|
||||
<div class="qr_widget">
|
||||
<div class="block_left">
|
||||
<h2 class="qr-code__title">App Anmeldung</h2>
|
||||
<div class="qr-code__text">Scannen Sie den Code mit der mobilen App MySyde Intranet, <br> um sich im System anzumelden.</div>
|
||||
</div>
|
||||
<div id="qrcode"></div>
|
||||
</br></br></br></br></br>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
const domain = window.location.hostname;
|
||||
var data = JSON.stringify({
|
||||
url_microsoft: "https://login.microsoftonline.com/awo-hamburg.de/oauth2/v2.0/authorize?client_id=93d2326e-40da-4938-a4d4-1df743ebd29a&response_type=code&scope=offline_access%20User.ReadWrite%20User.ReadBasic.All%20Presence.ReadWrite%20Calendars.ReadWrite%20Mail.ReadWrite%20Mail.Read%20Mail.Read.Shared%20Mail.ReadBasic%20Mail.ReadBasic.Shared%20Mail.ReadWrite.Shared%20Mail.Send%20Mail.Send.Shared&state=1234",
|
||||
user_id: "<?php echo $_SESSION["login_id"]; ?>",
|
||||
domain: domain,
|
||||
type: 1,
|
||||
qrcode: true,
|
||||
azure: true
|
||||
});
|
||||
|
||||
|
||||
$('#qrcode').qrcode({
|
||||
text: data,
|
||||
width: 250,
|
||||
height: 250
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<?php
|
||||
|
||||
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user