Skip to content

Change 2FA Field Type From Password to Text#13671

Open
daviftorres wants to merge 12 commits into
apache:mainfrom
daviftorres:change-2fa-field-from-password-to-text
Open

Change 2FA Field Type From Password to Text#13671
daviftorres wants to merge 12 commits into
apache:mainfrom
daviftorres:change-2fa-field-from-password-to-text

Conversation

@daviftorres

Copy link
Copy Markdown
Contributor

Description

This PR suggest changes to #13337.

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)
  • Build/CI
  • Test (unit or integration test code)

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

  • Major
  • Minor

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

Screenshots (if appropriate):

How Has This Been Tested?

How did you try to break this feature and the system with this change?

Note: I am not a developer, so please do the appropriated tests to validate what I propose. It is at the best of my intentions and limited by my competences.

Copilot AI review requested due to automatic review settings July 22, 2026 16:05

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the CloudStack Management UI’s 2FA code inputs to use a plain text input instead of a password input, addressing password-manager behavior where OTP/static-pin fields may be treated like real password fields (Issue #13337).

Changes:

  • Replaced <a-input-password> with <a-input> for 2FA code entry in login/setup/verify flows.
  • Keeps existing form bindings and submission behavior while changing the rendered input type/behavior.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

File Description
ui/src/views/iam/SetupTwoFaAtUserProfile.vue Switches the 2FA code field from password input to standard input in the user-profile 2FA setup flow.
ui/src/views/dashboard/VerifyTwoFa.vue Switches the 2FA verification code field from password input to standard input in the login verification step.
ui/src/views/dashboard/SetupTwoFaAtLogin.vue Switches the 2FA code field from password input to standard input in the login-time 2FA setup flow.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread ui/src/views/dashboard/VerifyTwoFa.vue
Comment thread ui/src/views/dashboard/VerifyTwoFa.vue
Comment thread ui/src/views/dashboard/SetupTwoFaAtLogin.vue
Comment thread ui/src/views/iam/SetupTwoFaAtUserProfile.vue
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings July 22, 2026 20:39

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.

Comments suppressed due to low confidence (1)

ui/src/views/dashboard/VerifyTwoFa.vue:41

  • After replacing <a-input-password> with <a-input>, the focusInput() method still queries input[type=password], so the OTP field will no longer be auto-focused on mount. Update the selector to target the new input (e.g., query for input or input[type=text]) or use a dedicated ref for the <a-input> element.
      <a-form-item name="code" ref="code" style="text-align: center;">
        <a-input
          style="width: 500px"
          v-model:value="form.code"
          autocomplete="one-time-code"
          inputmode="numeric"
          placeholder="xxxxxx" />

Copilot AI review requested due to automatic review settings July 22, 2026 20:54

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants