Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change password on first login #9547

Open
Tracked by #190
latin-panda opened this issue Oct 16, 2024 · 1 comment
Open
Tracked by #190

Change password on first login #9547

latin-panda opened this issue Oct 16, 2024 · 1 comment
Assignees
Labels
Type: Security Affects security

Comments

@latin-panda
Copy link
Contributor

latin-panda commented Oct 16, 2024

Is your feature request related to a problem? Please describe.
System admin users create accounts for CHWs and then share the password with them. To enhance the security of these accounts, there should be a way to prompt a password change on the first login.

Describe the solution you'd like
On the login page, create a feature to change the password with the following considerations:

  • All UI texts should be translatable in CHT's supported languages
  • This feature is enabled based on permissions (change_password_first_login)
  • Only new users will be prompted to change their password on the first login when the permission is enabled.
  • Subsequent logins won't require a password change.
  • Changing the password in this step is an online action (they need internet)
  • If the CHW can't change the password for some reason, they can't access the app
  • If CHW logins for first login and closes the app before changing password, the next time they login (even though it is not technically first login) they are prompted to change password.

[Designs on the making, to be updated here soon]

The scope of this work is to enable changing the password on the first login. It doesn't include changing the password rules or current authentication mechanisms.

@latin-panda latin-panda added Type: Feature Add something new Type: Security Affects security labels Oct 16, 2024
@garethbowen
Copy link
Member

This feature is enabled based on permissions

Once the MVP is proven then reset password will be mandatory for all projects so we can ensure all users on all instances are not compromised in future. Until then it's fine to use a feature flag so projects can opt-in to try it out.

Subsequent logins won't require a password change.

One addition to this, is the user loses their phone, or forgets their password and the administrator resets it for them, then the user will be required to change their password again. This is because the password has almost certainly been shared in plaintext so it's once again vulnerable to future leaks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Security Affects security
Projects
Status: Planned
Status: Next Week's Commitments
Development

No branches or pull requests

3 participants