mirror of
https://github.com/simple-login/app.git
synced 2024-11-11 10:06:11 +08:00
fix ForeignKeyViolation
This commit is contained in:
parent
eff960b451
commit
22c5513909
1 changed files with 1 additions and 0 deletions
|
@ -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