Skip to content

Commit

Permalink
fix qr code
Browse files Browse the repository at this point in the history
  • Loading branch information
nyiyui committed Dec 12, 2022
1 parent 7beced9 commit df212ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion scavenger2022/core/templates/core/team_recruit.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<div class="qrcode" id="qrcode"></div>
<script>
new QRCode(document.getElementById("qrcode"), {
text: "{% url 'join' %}?code={{ invite.code }}",
text: window.location.origin + "{% url 'join' %}?code={{ invite.code }}",
correctLevel: QRCode.CorrectLevel.H,
})
</script>
Expand Down
1 change: 1 addition & 0 deletions scavenger2022/core/views/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ def oauth_login(q):
)


@require_http_methods(["GET"])
def oauth_auth(q):
redirect_uri = q.build_absolute_uri(reverse("oauth_auth"))
given_state = q.GET["state"]
Expand Down

0 comments on commit df212ee

Please sign in to comment.