fix ForeignKeyViolation

This commit is contained in:
Son NK 2020-05-24 20:35:52 +02:00
parent eff960b451
commit 22c5513909

View file

@ -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"),