Invalidate logins

This commit is contained in:
Till Faelligen 2022-02-28 12:54:57 +01:00
parent dceba49023
commit 5db210e3d8

View file

@ -102,7 +102,10 @@ func main() {
if err != nil {
logrus.Fatalf("Failed to update password for user %s: %s", *username, err.Error())
}
logrus.Infoln("Updated password for user", *username)
if _, err = accountDB.RemoveAllDevices(context.Background(), *username, ""); err != nil {
logrus.Fatalf("Failed to remove all devices: %s", err.Error())
}
logrus.Infof("Updated password for user %s and invalidated all logins\n", *username)
return
}