From 22c5513909b86235d3cf9d8bfff762cae3dc3b14 Mon Sep 17 00:00:00 2001 From: Son NK <> Date: Sun, 24 May 2020 20:35:52 +0200 Subject: [PATCH] fix ForeignKeyViolation --- app/dashboard/views/fido_setup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app/dashboard/views/fido_setup.py b/app/dashboard/views/fido_setup.py index 5f7283b2..5cdf6c37 100644 --- a/app/dashboard/views/fido_setup.py +++ b/app/dashboard/views/fido_setup.py @@ -69,6 +69,7 @@ def fido_setup(): if current_user.fido_uuid is None: current_user.fido_uuid = fido_uuid + db.session.flush() Fido.create( credential_id=str(fido_credential.credential_id, "utf-8"),