Fix identity derivation in set-password endpoint.
The endpoint was trying to call loadIdentity() after encrypting the
mnemonics, which would try to decrypt the file we just encrypted.
Instead, derive the identity directly from the plaintext mnemonic
we already have in memory using IdentityKey.from({ mnemonic }).
Fixes: "Cannot read properties of undefined (reading 'toString')"
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
7f9d87f8ba60b72db1994d1a120f4a1531137ab8
by plankatron <fleeky@gmail.com> · 2026-01-29T00:54:30.000Z