fix SITE_URL

This commit is contained in:
devStorm 2020-05-07 05:34:17 -07:00
parent f7e3320242
commit e4895b52a0
No known key found for this signature in database
GPG Key ID: D52E1B66F336AC57
2 changed files with 4 additions and 4 deletions

View File

@ -1,7 +1,7 @@
import json
import secrets
import webauthn
from app.config import RP_ID
from app.config import RP_ID, URL
from flask import request, render_template, redirect, url_for, flash, session
from flask_login import login_user
@ -62,7 +62,7 @@ def fido():
credential_id = sk_assertion["id"]
webauthn_assertion_response = webauthn.WebAuthnAssertionResponse(
webauthn_user, sk_assertion, challenge, SITE_URL, uv_required=False
webauthn_user, sk_assertion, challenge, URL, uv_required=False
)
is_webauthn_verified = False

View File

@ -2,7 +2,7 @@ import uuid
import json
import secrets
import webauthn
from app.config import RP_ID
from app.config import RP_ID, URL
from urllib.parse import urlparse
from flask import render_template, flash, redirect, url_for, session
@ -41,7 +41,7 @@ def fido_setup():
fido_reg_response = webauthn.WebAuthnRegistrationResponse(
RP_ID,
SITE_URL,
URL,
sk_assertion,
challenge,
trusted_attestation_cert_required=False,