]> source.dussan.org Git - archiva.git/commitdiff
Changing autocomplete attributes
authorMartin Stockhammer <martin_s@apache.org>
Wed, 13 Jan 2021 10:59:01 +0000 (11:59 +0100)
committerMartin Stockhammer <martin_s@apache.org>
Wed, 13 Jan 2021 10:59:01 +0000 (11:59 +0100)
archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/app/modules/security/security-configuration/ldap-security/ldap-security.component.html
archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/app/modules/security/users/manage-users-add/manage-users-add.component.html
archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/app/modules/security/users/manage-users-edit/manage-users-edit.component.html
archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/app/services/toast.service.ts

index b4f55f5a682d8e214ddbac690a5434ff6c1581d1..d4a8bdd86d89e1f07ba9c5d5cf06fc96d88430fb 100644 (file)
@@ -16,7 +16,7 @@
   ~ under the License.
   -->
 
-<form class="mt-3 mb-3" [formGroup]="userForm" (ngSubmit)="onSubmit()" autocomplete="new-password">
+<form class="mt-3 mb-3" [formGroup]="userForm" (ngSubmit)="onSubmit()" autocomplete="off">
     <p class="row col-md-10">{{'security.config.ldap.explain'|translate}}</p>
     <div class="form-group row col-md-10"
          *ngFor="let attName of ['host_name','port','base_dn','groups_base_dn','bind_dn','bind_password']">
@@ -29,7 +29,7 @@
             <input [attr.type]="attName=='bind_password'?'password':'text'" formControlName="{{attName}}"
                    id="{{attName}}"
                    [ngClass]="getInputClasses(attName)"
-                   autocomplete="new-password"
+                   [attr.autocomplete]="attName=='bind_password'?'new-password':'off'"
             >
         </div>
     </div>
index c04ee50c6b37d643c1b08940300b934c46806d6d..22f251608478c705110ca090bcd56ecf61e3ab4e 100644 (file)
@@ -16,7 +16,7 @@
   ~ under the License.
   -->
 
-<form class="mt-3 mb-3" [formGroup]="userForm" (ngSubmit)="onSubmit()">
+<form class="mt-3 mb-3" [formGroup]="userForm" (ngSubmit)="onSubmit()" autocomplete="off">
     <div class="form-group col-md-8">
         <label for="user_id">{{'users.attributes.user_id' |translate}}</label>
         <input type="text" class="form-control" formControlName="user_id" id="user_id"
         <label for="email">{{'users.attributes.email' |translate}}</label>
         <input type="text" class="form-control" formControlName="email" id="email"
                [ngClass]="valid('email')"
-               placeholder="{{'users.input.email'|translate}}">
+               placeholder="{{'users.input.email'|translate}}" autocomplete="off">
     </div>
     <div class="form-group col-md-8">
         <label for="password">{{'users.attributes.password' |translate}}</label>
         <input type="password" class="form-control" formControlName="password" id="password"
                [ngClass]="valid('password')"
-               placeholder="{{'users.input.password'|translate}}">
+               placeholder="{{'users.input.password'|translate}}" autocomplete="new-password">
         <div *ngFor="let error of getErrorsFor('password')" class="invalid-feedback">
             {{error}}
         </div>
@@ -62,7 +62,7 @@
         <label for="confirm_password">{{'users.attributes.confirm_password' |translate}}</label>
         <input type="password" class="form-control" formControlName="confirm_password" id="confirm_password"
                [ngClass]="valid('confirm_password')"
-               placeholder="{{'users.input.confirm_password'|translate}}">
+               placeholder="{{'users.input.confirm_password'|translate}}" autocomplete="new-password">
     </div>
     <div class="form-group col-md-8">
         <div class="form-check">
index 8f12e3bf7b92f0b503654794f5d623239718a630..37bf41eedf79cb726e952ab72400a9eeeae5b145 100644 (file)
@@ -16,7 +16,7 @@
   ~ under the License.
   -->
 
-<form class="mt-3 mb-3" [formGroup]="userForm" (ngSubmit)="onSubmit()">
+<form class="mt-3 mb-3" [formGroup]="userForm" (ngSubmit)="onSubmit()" autocomplete="off">
     <div class="form-group row col-md-8" *ngIf="!editUser.permanent">
         <div class="col-md-1">{{'form.edit' |translate}} <span class="fas fa-edit"></span></div>
         <div class="col-md-6">
index 2d515f84993997b5a3ac639b84448f45fd59471f..f4955ef1f2c871e0dee63b6e555058a798ad735b 100644 (file)
@@ -87,7 +87,7 @@ export class ToastService {
     options.classname=['alert','alert-info']
     options.type='success'
     if (!options.delay) {
-      options.delay=80000
+      options.delay=8000
     }
     this.show(origin,textOrTpl,options)
   }