decred / politeia

ISC License
110 stars 75 forks source link

mysql: Fix InsertUser identity bug. #1635

Closed lukebp closed 2 years ago

lukebp commented 2 years ago

This fixes a bug in the InsertUser function of the mysql user database implementation.

When a new user record is inserted into the database, both the users table and the identities table must be updated. The InsertUser function was not updating the identities table, which was causing user by public key lookups to fail.

The InsertUser function is only used during database migrations. This bug does not impact regular politeia use.

This bug was introduce by 0b1982a.