This is an automated email from the ASF dual-hosted git repository.

rawlin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficcontrol.git


The following commit(s) were added to refs/heads/master by this push:
     new 0a61ce5926 Do not autofill (#7053)
0a61ce5926 is described below

commit 0a61ce59260be20dfada98306b7e2ad29164f5c9
Author: Steve Hamrick <[email protected]>
AuthorDate: Thu Sep 1 11:34:01 2022 -0600

    Do not autofill (#7053)
---
 .../src/app/core/servers/server-details/server-details.component.html | 2 +-
 .../src/app/core/servers/server-details/server-details.component.ts   | 4 +++-
 .../app/src/common/modules/form/server/form.server.tpl.html           | 2 +-
 3 files changed, 5 insertions(+), 3 deletions(-)

diff --git 
a/experimental/traffic-portal/src/app/core/servers/server-details/server-details.component.html
 
b/experimental/traffic-portal/src/app/core/servers/server-details/server-details.component.html
index 832c77a344..a61eafe371 100644
--- 
a/experimental/traffic-portal/src/app/core/servers/server-details/server-details.component.html
+++ 
b/experimental/traffic-portal/src/app/core/servers/server-details/server-details.component.html
@@ -166,7 +166,7 @@ limitations under the License.
                                        </mat-form-field>
                                        <mat-form-field>
                                                <mat-label><abbr 
title="Integrated Lights-Out Management">ILO</abbr> Password</mat-label>
-                                               <tp-obscured-text-input 
name="iloPassword" [(value)]="server.iloPassword"></tp-obscured-text-input>
+                                               <tp-obscured-text-input 
name="iloPassword" [autocomplete]="autocompleteNew" 
[(value)]="server.iloPassword"></tp-obscured-text-input>
                                        </mat-form-field>
                                </div>
                        </fieldset>
diff --git 
a/experimental/traffic-portal/src/app/core/servers/server-details/server-details.component.ts
 
b/experimental/traffic-portal/src/app/core/servers/server-details/server-details.component.ts
index 9dc8e0f6fd..e0ecdc3eda 100644
--- 
a/experimental/traffic-portal/src/app/core/servers/server-details/server-details.component.ts
+++ 
b/experimental/traffic-portal/src/app/core/servers/server-details/server-details.component.ts
@@ -21,7 +21,7 @@ import { CacheGroupService, CDNService, 
PhysicalLocationService, ProfileService,
 import { ServerService } from "src/app/api/server.service";
 import { CacheGroup, CDN, DUMMY_SERVER, Interface, PhysicalLocation, Profile, 
Server, Status, Type } from "src/app/models";
 import {TpHeaderService} from "src/app/shared/tp-header/tp-header.service";
-import { IP, IP_WITH_CIDR } from "src/app/utils";
+import { IP, IP_WITH_CIDR, AutocompleteValue } from "src/app/utils";
 
 /**
  * ServerDetailsComponent is the controller for a server's "details" page.
@@ -121,6 +121,8 @@ export class ServerDetailsComponent implements OnInit {
         */
        public types = new Array<Type>();
 
+       public autocompleteNew = AutocompleteValue.NEW_PASSWORD;
+
        /**
         * Constructor.
         */
diff --git 
a/traffic_portal/app/src/common/modules/form/server/form.server.tpl.html 
b/traffic_portal/app/src/common/modules/form/server/form.server.tpl.html
index 5b985899a3..7d4e0a6096 100644
--- a/traffic_portal/app/src/common/modules/form/server/form.server.tpl.html
+++ b/traffic_portal/app/src/common/modules/form/server/form.server.tpl.html
@@ -231,7 +231,7 @@ under the License.
             <label ng-class="{'has-error': 
hasError(serverForm.iloPassword)}">ILO Password</label>
             <div ng-class="{'has-error': hasError(serverForm.iloPassword), 
'has-feedback': hasError(serverForm.iloPassword)}">
                                <div class="form-control 
revealable-password-container">
-                                       <input name="iloPassword" 
type="{{iloInputType}}" class="form-control" ng-model="server.iloPassword" 
autocomplete="off" maxlength="45"/>
+                                       <input name="iloPassword" 
type="{{iloInputType}}" class="form-control" ng-model="server.iloPassword" 
autocomplete="new-password" maxlength="45"/>
                                        <button type="button" title="toggle 
revealed password" aria-label="toggle revealed password" 
ng-click="toggleILO()"><i class="fa fa-eye"></i></button>
                                </div>
                 <small class="input-error" 
ng-show="hasPropertyError(serverForm.iloPassword, 'maxlength')">Too Long</small>

Reply via email to