Revert migration script to ensure data is migrated
parent
eeefec2fac
commit
c60904add7
|
@ -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)
|
||||
}
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue