Skip to content

fix: correct boolean condition for password change in UpdateProfile#493

Merged
lakhansamani merged 3 commits intomainfrom
fix/update-profile-password-condition
Mar 1, 2026
Merged

fix: correct boolean condition for password change in UpdateProfile#493
lakhansamani merged 3 commits intomainfrom
fix/update-profile-password-condition

Conversation

@lakhansamani
Copy link
Contributor

Summary

  • Changed || to && in password change guard condition
  • Password change is now only blocked when BOTH basic auth and mobile basic auth are disabled

Test plan

  • Verify password change works when only one auth method is enabled
  • Verify password change is blocked when both are disabled

Fixes #482

Changed OR to AND so password change is only blocked when BOTH basic
auth and mobile basic auth are disabled, not when either is disabled.

Fixes #482
@lakhansamani lakhansamani merged commit c22cdb9 into main Mar 1, 2026
@lakhansamani lakhansamani deleted the fix/update-profile-password-condition branch March 1, 2026 07:05
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.

UpdateProfile password change has wrong boolean condition

1 participant