Clear stored usernames from postgres in multidevice upgrade

This commit is contained in:
Tulir Asokan 2021-10-30 14:22:58 +03:00
parent 7b1c320295
commit a829a887f0

View file

@ -81,6 +81,12 @@ func init() {
if err != nil { if err != nil {
return err return err
} }
// Clear all usernames, the users need to relogin anyway.
_, err = tx.Exec(`UPDATE "user" SET username=null`)
if err != nil {
return err
}
} }
return nil return nil
}} }}