Skip to content

feat(login): add autocomplete attributes for credential fields#351

Open
guptapratykshh wants to merge 1 commit into
PSMRI:mainfrom
guptapratykshh:feat/login-credential-autocomplete
Open

feat(login): add autocomplete attributes for credential fields#351
guptapratykshh wants to merge 1 commit into
PSMRI:mainfrom
guptapratykshh:feat/login-credential-autocomplete

Conversation

@guptapratykshh
Copy link
Copy Markdown

@guptapratykshh guptapratykshh commented May 14, 2026

📋 Description

Adds standard HTML autocomplete values on the login form: username on the user field and current-password on the password field (replacing off on password). This lets password managers and the browser suggest and fill credentials safely, and aligns with common login UX without changing validation or API behavior.

JIRA ID:

Please provide a summary of the change and the motivation behind it. Include relevant context and details.


✅ Type of Change

  • 🐞 Bug fix (non-breaking change which resolves an issue)
  • New feature (non-breaking change which adds functionality)
  • 🔥 Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • 🛠 Refactor (change that is neither a fix nor a new feature)
  • ⚙️ Config change (configuration file or build script updates)
  • 📚 Documentation (updates to docs or readme)
  • 🧪 Tests (adding new or updating existing tests)
  • 🎨 UI/UX (changes that affect the user interface)
  • 🚀 Performance (improves performance)
  • 🧹 Chore (miscellaneous changes that don't modify src or test files)

ℹ️ Additional Information

Please describe how the changes were tested, and include any relevant screenshots, logs, or other information that provides additional context.

Summary by CodeRabbit

  • Bug Fixes
    • Improved login form autocomplete support, enabling browsers to properly autofill saved usernames and passwords for a better user experience.

Review Change Stack

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 14, 2026

📝 Walkthrough

Walkthrough

Login form inputs in the Angular template are updated to enable browser autocomplete. The username input field now uses autocomplete="username" and the password field uses autocomplete="current-password", replacing the previous autocomplete="off" directive.

Changes

Login Form Autocomplete

Layer / File(s) Summary
Login form autocomplete attributes
src/app/app-modules/login/login.component.html
Username input field autocomplete attribute changed to username, and password input field autocomplete attribute changed to current-password to enable browser password management.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Poem

🐰 A form that remembers its friends,
No more "off" that never bends,
Username and password align,
Browser helpers now work just fine!

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately and clearly describes the main change: adding autocomplete attributes to credential fields in the login component. It is concise, specific, and directly related to the changeset.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
src/app/app-modules/login/login.component.html (1)

1-1: ⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

Add the required GPL-3.0 license header.

This file does not begin with the AMRIT GPL-3.0 license header block, which violates the coding guidelines. As per coding guidelines, all source files must begin with the AMRIT GPL-3.0 license header block.

Note: This is a pre-existing issue, not introduced by the current changes.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/app/app-modules/login/login.component.html` at line 1, Add the AMRIT
GPL-3.0 license header block to the top of login.component.html before any HTML
markup; place the exact required multi-line header comment as specified by the
project's licensing guidelines above the existing root element (the <div
class="flex-container">) so the file begins with the license block.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Outside diff comments:
In `@src/app/app-modules/login/login.component.html`:
- Line 1: Add the AMRIT GPL-3.0 license header block to the top of
login.component.html before any HTML markup; place the exact required multi-line
header comment as specified by the project's licensing guidelines above the
existing root element (the <div class="flex-container">) so the file begins with
the license block.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 914bccc3-d56b-4dab-8549-1cd01e7a130f

📥 Commits

Reviewing files that changed from the base of the PR and between 91045e5 and 14b37b4.

📒 Files selected for processing (1)
  • src/app/app-modules/login/login.component.html

@guptapratykshh guptapratykshh deleted the feat/login-credential-autocomplete branch May 16, 2026 06:18
@guptapratykshh guptapratykshh restored the feat/login-credential-autocomplete branch May 19, 2026 13:56
@sonarqubecloud
Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
C Maintainability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

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