new testing-version to try to fix a bug in migration
authorPhiTux <redacted>
Mon, 13 Oct 2025 08:39:13 +0000 (10:39 +0200)
committerPhiTux <redacted>
Mon, 13 Oct 2025 08:39:13 +0000 (10:39 +0200)
README.md
backend/utils/migration.go
backend/version

index 69a4c1ec7c92b02549ba62d6f2065fec7853225a..13448693c154fb380f8d20e3cbef57a053660a13 100644 (file)
--- 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.
index f86f6fe719a299cbe4c3edb1aef7ffd7b0b324fd..ca208c157959262261bb7d099735ce667601ab10 100644 (file)
@@ -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)
index 03a0b7f5855986831d34986b27ee97f1f44f2d35..343d310ab15eea112c1f33b9c4bd9cd5c51db2e5 100644 (file)
@@ -1 +1 @@
-2.0.0-testing.1
+2.0.0-testing.2
git clone https://git.99rst.org/PROJECT