Skip to content

Issue/1571 account recovery when email address includes +#1860

Open
SarthakDudhe wants to merge 2 commits intonodeSolidServer:mainfrom
SarthakDudhe:issue/1571-plus-email-recovery
Open

Issue/1571 account recovery when email address includes +#1860
SarthakDudhe wants to merge 2 commits intonodeSolidServer:mainfrom
SarthakDudhe:issue/1571-plus-email-recovery

Conversation

@SarthakDudhe
Copy link
Copy Markdown

@SarthakDudhe SarthakDudhe commented May 7, 2026

I worked on #1571: “If you sign up with a plus sign in your email, your account can't be used or recovered” on branch issue/1571-plus-email-recovery.

The safest concrete fix here is in the recovery-email path. NSS writes the account recovery email into mailto: IRIs in account templates, then reads it back out of the root ACL during password reset. I updated account-template.mjs to encode the local part of mailbox addresses for mailto: usage, so jon+solidtest@snap.com is stored as jon%2Bsolidtest@snap.com. I also updated account-manager.mjs to decode the stored mailto: value back to the original email when loading the recovery address.

I added focused unit coverage in account-template-test.mjs and account-manager-test.mjs for the exact + case from the issue. npx mocha test/unit/account-template-test.mjs test/unit/account-manager-test.mjs passes with 39 passing. npm run lint also passes, with the same pre-existing unrelated warning in test/integration/params-test.mjs.

@TallTed TallTed changed the title Issue/1571 plus email recovery Issue/1571 account recovery when email address includes + May 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant