fix ForeignKeyViolation
This commit is contained in:
parent
eff960b451
commit
22c5513909
|
@ -69,6 +69,7 @@ def fido_setup():
|
||||||
|
|
||||||
if current_user.fido_uuid is None:
|
if current_user.fido_uuid is None:
|
||||||
current_user.fido_uuid = fido_uuid
|
current_user.fido_uuid = fido_uuid
|
||||||
|
db.session.flush()
|
||||||
|
|
||||||
Fido.create(
|
Fido.create(
|
||||||
credential_id=str(fido_credential.credential_id, "utf-8"),
|
credential_id=str(fido_credential.credential_id, "utf-8"),
|
||||||
|
|
Loading…
Reference in a new issue