1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2025-06-21 09:58:23 +02:00

Added a first pass for automatically entering an activity with a qrcode

This commit is contained in:
Nicolas Margulies
2023-10-11 18:01:04 +02:00
parent 145e55da75
commit e6f3084588
2 changed files with 34 additions and 2 deletions

View File

@ -20,7 +20,7 @@ SPDX-License-Identifier: GPL-3.0-or-later
<script src="https://cdnjs.cloudflare.com/ajax/libs/qrcodejs/1.0.0/qrcode.min.js" integrity="sha512-CNgIRecGo7nphbeZ04Sc13ka07paqdeTu0WR1IM4kNcpmBAUSHSQX0FslNhTDadL4O5SAGapGt4FodqL8My0mA==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script>
var qrc = new QRCode(document.getElementById("qrcode"), {
text: "{{ user_object.pk }}",
text: "{{ user_object.pk }}\0",
width: 1024,
height: 1024
});