From c60904add7f6c0fef4503a5dd08e79a39a793226 Mon Sep 17 00:00:00 2001 From: Amir Zarrinkafsh Date: Mon, 6 Jan 2020 18:28:06 +1100 Subject: [PATCH] Revert migration script to ensure data is migrated --- cmd/authelia-scripts/migration_local.go | 2 +- cmd/authelia-scripts/migration_mongo.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/authelia-scripts/migration_local.go b/cmd/authelia-scripts/migration_local.go index 8a39bbefe..593d421be 100644 --- a/cmd/authelia-scripts/migration_local.go +++ b/cmd/authelia-scripts/migration_local.go @@ -102,7 +102,7 @@ func migrateLocalU2FSecret(dbProvider storage.Provider) { } func migrateLocalPreferences(dbProvider storage.Provider) { - file, err := os.Open(path.Join(localDatabasePath, "preferred_2fa_method")) + file, err := os.Open(path.Join(localDatabasePath, "prefered_2fa_method")) if err != nil { log.Fatal(err) } diff --git a/cmd/authelia-scripts/migration_mongo.go b/cmd/authelia-scripts/migration_mongo.go index baa61055b..d76866f14 100644 --- a/cmd/authelia-scripts/migration_mongo.go +++ b/cmd/authelia-scripts/migration_mongo.go @@ -124,7 +124,7 @@ func migrateMongoTOTPDevices(db *mongo.Database, dbProvider storage.Provider) { } func migrateMongoPreferences(db *mongo.Database, dbProvider storage.Provider) { - u2fCollection := db.Collection("preferred_2fa_method") + u2fCollection := db.Collection("prefered_2fa_method") cur, err := u2fCollection.Find(context.Background(), bson.D{}) if err != nil {