Skip to content

Commit

Permalink
feat: hidden field username added to password change form to get bene…
Browse files Browse the repository at this point in the history
…fit of chrome password manager feature (#639)
  • Loading branch information
nramc authored Jan 6, 2025
1 parent cbc66f3 commit f92d2d3
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,10 @@ <h4 class="text-primary text-lg font-bold">Password</h4>
</div>

<!-- Edit Mode -->
<div *ngIf="editMode()">
<div *ngIf="editMode() && userData()">
<form (ngSubmit)="savePassword(newPassword)" class="space-y-4">
<input type="email" [hidden]="true" name="username" id="username" required placeholder="Username"
[ngModel]="userData()!.username" autocomplete="username" #username="ngModel">

<!-- New Password Input -->
<div class="relative">
Expand Down

0 comments on commit f92d2d3

Please sign in to comment.