Closed rinusvandam closed 5 years ago
I have a website running two-factor authentication.
When I click the disable 2FA in the back-end for a user I get the following error:
SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (passwordprotectedwebsite.twofactorauthentication_session, CONSTRAINTtwofactorauthentication_session_sessionId_fkFOREIGN KEY (sessionId) REFERENCESsessions(id) ON DELETE CASCADE) The SQL being executed was: INSERT INTOtwofactorauthentication_session(userId,sessionId,dateVerified,dateCreated,uid,dateUpdated) VALUES (3, 0, '2019-02-28 12:06:45', '2019-02-28 12:06:45', 'f1410a70-0a99-41bf-8af9-f8c59de7c492', '2019-02-28 12:06:45')
SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (
.
, CONSTRAINT
FOREIGN KEY (
) REFERENCES
(
) ON DELETE CASCADE) The SQL being executed was: INSERT INTO
,
) VALUES (3, 0, '2019-02-28 12:06:45', '2019-02-28 12:06:45', 'f1410a70-0a99-41bf-8af9-f8c59de7c492', '2019-02-28 12:06:45')
I'm running:
Fixed in 2.1.1
Wow that's fast. Thanks!
I have a website running two-factor authentication.
When I click the disable 2FA in the back-end for a user I get the following error:
SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (
passwordprotectedwebsite.
twofactorauthentication_session, CONSTRAINT
twofactorauthentication_session_sessionId_fkFOREIGN KEY (
sessionId) REFERENCES
sessions(
id) ON DELETE CASCADE) The SQL being executed was: INSERT INTO
twofactorauthentication_session(
userId,
sessionId,
dateVerified,
dateCreated,
uid,
dateUpdated) VALUES (3, 0, '2019-02-28 12:06:45', '2019-02-28 12:06:45', 'f1410a70-0a99-41bf-8af9-f8c59de7c492', '2019-02-28 12:06:45')
I'm running: