Restore a kept account that never had a password #330

Merged
jcoffey-dev merged 1 commits from fix/326-restore-without-password into main 2026-11-09 06:54:30 +00:00
1 Commits
Author SHA1 Message Date
jcoffey-dev fa4ad84582 Restore a kept account that never had a password (#326)
ci / fork-checks (pull_request) Skipped
ci / build (pull_request) Skipped
github/ci (branch) GitHub Actions
ci / github (pull_request) Successful in 7m46s
Restoring a kept user replaced the password credential it had with the
new password, and refused when there was none: "The kept account has no
password credential." A user created without a password could be
destroyed from Deleted Accounts, but never restored.

The new password is now set the way setting one on a live account does:
it replaces the password credential, or becomes one when there isn't
one. Its expiry follows the server's default as before, and the other
credentials stay.

The undelete test restores a user created with no password and signs in
with the new one. Reported on the forum (t/232, post 8).
2026-11-08 23:12:18 -07:00