Skip to content

Open Change Username after the password prompt - #6311

Open
j0ntz wants to merge 3 commits into
developfrom
jon/fix/change-username-unlock
Open

j0ntz wants to merge 3 commits into
developfrom
jon/fix/change-username-unlock

Conversation

@j0ntz

@j0ntz j0ntz commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

Description

Asana task

Tapping Change Username while Settings is locked prompted for the password and unlocked Settings, then stopped. The user had to tap the row a second time. Every other locked row continues after the prompt.

handleChangeUsername read validatedPassword from its render's closure, which hid the value set by the prompt from the running handler. It now uses the password the prompt returns.

The same handler had a second dead end. The password lives in scene state and the unlocked flag lives in redux. Unlocking, leaving Settings and returning left the row doing nothing at all. The handler now prompts whenever it has no password, including when Settings already shows as unlocked.

QA found a third case in the same handler, and it predates this PR. Changing the password and then renaming in the same Settings visit passed the old password to the rename, which rebuilds the login from the value it receives. The account went back to the old password: the newest one was refused and the old one logged in. The handler now checks the held password with account.checkPassword and prompts when it is no longer current. It covers every way the password can change while the scene stays mounted, and an unchanged password still needs no second prompt.

The first commit clears lint warnings in SettingsScene.tsx by moving the two header icons to VectorIcon; the rendered glyphs do not change. Five other warnings in that file stay, because none has a replacement available in this scope.

Tested on the iOS simulator only. The original frames show before and after for the prompt paths and stop at the Change Username scene. The new frames drive the QA case end to end on a throwaway account: change the password, rename, log in with the newest password (Home), log in with the previous password (refused). The Requirements boxes stay unchecked because no real device or Android run happened.

changeUsername in edge-core-js does not verify the password it receives. A caller passing a stale value still rewrites the login. That is out of scope here and is a candidate for hardening in core.

CHANGELOG

Does this branch warrant an entry to the CHANGELOG?

  • Yes
  • No

Dependencies

none

Requirements

If you have made any visual changes to the GUI. Make sure you have:

  • Tested on iOS device
  • Tested on Android device
  • Tested on small-screen device (iPod Touch)
  • Tested on large-screen device (tablet)

Test evidence

6b20b27
Open Change Username after the password prompt
2026-11-01

1. before fix stays on settings

2. after fix settings locked

3. after fix password prompt

4. after fix change username scene

5. after fix cancel stays locked

6. after fix remounted unlocked

7. after fix remounted prompts

8. after fix remounted opens scene

1. c5 settings locked

2. c5 new password entered

3. c5 password changed modal

4. c5 settings after password change

5. c5 rename prompts for password

6. c5 change username opens

7. c5 settings shows new username

8. c5 login new username newest password

9. c5 newest password result

10. c5 previous password result

j0ntz added 2 commits October 31, 2026 20:19
Render the account and options header icons through VectorIcon rather
than importing react-native-vector-icons directly. The rendered glyphs,
sizes and colors do not change.
The lock row and hasLock repeated the same prompt, error handling and
password capture. Share them so a caller can also read the validated
password from the prompt it just ran.
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ⚠️ Failed 2026-11-01T03:50:37.083245Z
We couldn’t complete this review. Comment @codex review to try again.
7a69bb8 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

The handler read `validatedPassword` from its render's closure, so the
value set by the prompt was invisible and the press silently stopped
after unlocking. It now uses the password the prompt returns.

The password lives in scene state while the unlocked flag lives in
redux, so leaving Settings and coming back also left the row doing
nothing. The handler now prompts whenever it has no password.
@j0ntz
j0ntz force-pushed the jon/fix/change-username-unlock branch from 7a69bb8 to 6b20b27 Compare November 1, 2026 12:30
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