3x-ui/util/crypto
MHSanaei 80173b1b1d
fix(db): make password-hash migration idempotent to prevent lock-out (#4612)
The UserPasswordHash seeder bcrypt-hashed user.Password unconditionally, assuming plaintext. If it ran on an already-bcrypt value (DB restore, SQLite<->Postgres switch, history_of_seeders inconsistency on upgrade) it double-hashed the password, locking the admin out with both old and new passwords rejected. Skip any password that is already a bcrypt hash.
2026-06-01 20:48:12 +02:00
..
crypto.go fix(db): make password-hash migration idempotent to prevent lock-out (#4612) 2026-06-01 20:48:12 +02:00
crypto_test.go Feat/multi inbound clients (#4469) 2026-05-19 12:20:24 +02:00