From: PhiTux Date: Mon, 13 Oct 2025 08:39:13 +0000 (+0200) Subject: new testing-version to try to fix a bug in migration X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=af26412ab5848a9b380685c0c8beb3d639dfce0e;p=DailyTxT.git new testing-version to try to fix a bug in migration --- diff --git a/README.md b/README.md index 69a4c1e..1344869 100644 --- a/README.md +++ b/README.md @@ -163,6 +163,12 @@ Additionally there are tags like A.B.C-testing.1 (...testing.2 etc.) for **non-s The old version 1 is moved to the [v1 branch](https://github.com/PhiTux/DailyTxT/tree/v1). +### Newest Testing Versions: +``` +2.0.0-testing.2 (2025-10-13) +- Trying to fix a bug in the migration process by removing unnecessary code (that should validate some data, but was probably harmful instead). +``` + ## Start developing You need [Go](https://golang.org/) (at least version 1.24) and [Node.js](https://nodejs.org/) (at least version 24) installed. diff --git a/backend/utils/migration.go b/backend/utils/migration.go index f86f6fe..ca208c1 100644 --- a/backend/utils/migration.go +++ b/backend/utils/migration.go @@ -257,16 +257,6 @@ func MigrateUserData(username, password string, registerFunc RegisterUserFunc, p // Derive key from password and salt oldDerivedKey := DeriveKeyFromOldPassword(password, oldSalt) - _, err = base64.StdEncoding.DecodeString(base64.URLEncoding.EncodeToString(oldDerivedKey)) - if err != nil { - return handleError("Error decoding old derived key", err) - } - - // Decode the old encrypted key (just for validation) - _, err = base64.URLEncoding.DecodeString(oldEncEncKey) - if err != nil { - return handleError("Error decoding old encrypted key", err) - } // Decrypt the old encryption key oldEncKey, err := FernetDecrypt(oldEncEncKey, oldDerivedKey) diff --git a/backend/version b/backend/version index 03a0b7f..343d310 100644 --- a/backend/version +++ b/backend/version @@ -1 +1 @@ -2.0.0-testing.1 +2.0.0-testing.2