mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-28 12:45:45 +01:00
disable autocomplete of password fields
This commit is contained in:
parent
94f671ca6b
commit
9aa8699617
@ -1,4 +1,4 @@
|
|||||||
<form #form (ngSubmit)="submit()" [appApiAction]="formPromise" class="container" ngNativeValidate>
|
<form #form (ngSubmit)="submit()" [appApiAction]="formPromise" class="container" ngNativeValidate autocomplete="off">
|
||||||
<div class="row justify-content-md-center mt-5">
|
<div class="row justify-content-md-center mt-5">
|
||||||
<div class="col-5" [ngClass]="{'col-9': selectedProviderType === providerType.Duo || selectedProviderType === providerType.OrganizationDuo}">
|
<div class="col-5" [ngClass]="{'col-9': selectedProviderType === providerType.Duo || selectedProviderType === providerType.OrganizationDuo}">
|
||||||
<p class="lead text-center mb-4">{{title}}</p>
|
<p class="lead text-center mb-4">{{title}}</p>
|
||||||
@ -24,7 +24,8 @@
|
|||||||
<img src="../../images/yubikey.jpg" class="rounded img-fluid mb-3" alt="">
|
<img src="../../images/yubikey.jpg" class="rounded img-fluid mb-3" alt="">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="code" class="sr-only">{{'verificationCode' | i18n}}</label>
|
<label for="code" class="sr-only">{{'verificationCode' | i18n}}</label>
|
||||||
<input id="code" type="password" name="Code" class="form-control" [(ngModel)]="token" required appAutofocus appInputVerbatim>
|
<input id="code" type="password" name="Code" class="form-control" [(ngModel)]="token" required appAutofocus appInputVerbatim
|
||||||
|
autocomplete="new-password">
|
||||||
</div>
|
</div>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
<ng-container *ngIf="selectedProviderType === providerType.U2f">
|
<ng-container *ngIf="selectedProviderType === providerType.U2f">
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<app-callout type="warning">{{'loggedOutWarning' | i18n}}</app-callout>
|
<app-callout type="warning">{{'loggedOutWarning' | i18n}}</app-callout>
|
||||||
<form #form (ngSubmit)="submit()" [appApiAction]="formPromise" ngNativeValidate>
|
<form #form (ngSubmit)="submit()" [appApiAction]="formPromise" ngNativeValidate autocomplete="off">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-6">
|
<div class="col-6">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
@ -10,12 +10,12 @@
|
|||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="newMasterPassword">{{'newMasterPass' | i18n}}</label>
|
<label for="newMasterPassword">{{'newMasterPass' | i18n}}</label>
|
||||||
<input id="newMasterPassword" type="password" name="NewMasterPasswordHash" class="form-control" [(ngModel)]="newMasterPassword"
|
<input id="newMasterPassword" type="password" name="NewMasterPasswordHash" class="form-control" [(ngModel)]="newMasterPassword"
|
||||||
required appInputVerbatim>
|
required appInputVerbatim autocomplete="new-password">
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="confirmNewMasterPassword">{{'confirmNewMasterPass' | i18n}}</label>
|
<label for="confirmNewMasterPassword">{{'confirmNewMasterPass' | i18n}}</label>
|
||||||
<input id="confirmNewMasterPassword" type="password" name="ConfirmNewMasterPasswordHash" class="form-control" [(ngModel)]="confirmNewMasterPassword"
|
<input id="confirmNewMasterPassword" type="password" name="ConfirmNewMasterPasswordHash" class="form-control" [(ngModel)]="confirmNewMasterPassword"
|
||||||
required appInputVerbatim>
|
required appInputVerbatim autocomplete="new-password">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<app-two-factor-verify [organizationId]="organizationId" [type]="type" (onAuthed)="auth($event)" *ngIf="!authed">
|
<app-two-factor-verify [organizationId]="organizationId" [type]="type" (onAuthed)="auth($event)" *ngIf="!authed">
|
||||||
</app-two-factor-verify>
|
</app-two-factor-verify>
|
||||||
<form #form (ngSubmit)="submit()" [appApiAction]="formPromise" ngNativeValidate *ngIf="authed">
|
<form #form (ngSubmit)="submit()" [appApiAction]="formPromise" ngNativeValidate *ngIf="authed" autocomplete="off">
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<ng-container *ngIf="enabled">
|
<ng-container *ngIf="enabled">
|
||||||
<app-callout type="success" title="{{'enabled' | i18n}}" icon="fa-check-circle">
|
<app-callout type="success" title="{{'enabled' | i18n}}" icon="fa-check-circle">
|
||||||
@ -34,7 +34,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="skey">{{'twoFactorDuoSecretKey' | i18n}}</label>
|
<label for="skey">{{'twoFactorDuoSecretKey' | i18n}}</label>
|
||||||
<input id="skey" type="password" name="SecretKey" class="form-control" [(ngModel)]="skey" required appInputVerbatim>
|
<input id="skey" type="password" name="SecretKey" class="form-control" [(ngModel)]="skey" required appInputVerbatim autocomplete="new-password">
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="host">{{'twoFactorDuoApiHostname' | i18n}}</label>
|
<label for="host">{{'twoFactorDuoApiHostname' | i18n}}</label>
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<app-two-factor-verify [organizationId]="organizationId" [type]="type" (onAuthed)="auth($event)" *ngIf="!authed">
|
<app-two-factor-verify [organizationId]="organizationId" [type]="type" (onAuthed)="auth($event)" *ngIf="!authed">
|
||||||
</app-two-factor-verify>
|
</app-two-factor-verify>
|
||||||
<form #form (ngSubmit)="submit()" [appApiAction]="formPromise" ngNativeValidate *ngIf="authed">
|
<form #form (ngSubmit)="submit()" [appApiAction]="formPromise" ngNativeValidate *ngIf="authed" autocomplete="off">
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<app-callout type="success" title="{{'enabled' | i18n}}" icon="fa-check-circle" *ngIf="enabled">
|
<app-callout type="success" title="{{'enabled' | i18n}}" icon="fa-check-circle" *ngIf="enabled">
|
||||||
{{'twoStepLoginProviderEnabled' | i18n}}
|
{{'twoStepLoginProviderEnabled' | i18n}}
|
||||||
@ -36,8 +36,8 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="form-group col-6" *ngFor="let k of keys; let i = index">
|
<div class="form-group col-6" *ngFor="let k of keys; let i = index">
|
||||||
<label for="key{{i + 1}}">{{'yubikeyX' | i18n : i + 1}}</label>
|
<label for="key{{i + 1}}">{{'yubikeyX' | i18n : i + 1}}</label>
|
||||||
<input id="key{{i + 1}}" type="text" name="Key{{i + 1}}" class="form-control" [(ngModel)]="k.key" *ngIf="!k.existingKey"
|
<input id="key{{i + 1}}" type="password" name="Key{{i + 1}}" class="form-control" [(ngModel)]="k.key" *ngIf="!k.existingKey"
|
||||||
appInputVerbatim>
|
appInputVerbatim autocomplete="new-password">
|
||||||
<div class="d-flex" *ngIf="k.existingKey">
|
<div class="d-flex" *ngIf="k.existingKey">
|
||||||
<span class="mr-2">{{k.existingKey}}</span>
|
<span class="mr-2">{{k.existingKey}}</span>
|
||||||
<button type="button" class="btn btn-link text-danger ml-auto" (click)="remove(k)" title="{{'remove' | i18n}}">
|
<button type="button" class="btn btn-link text-danger ml-auto" (click)="remove(k)" title="{{'remove' | i18n}}">
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<div class="modal fade">
|
<div class="modal fade">
|
||||||
<div class="modal-dialog modal-lg">
|
<div class="modal-dialog modal-lg">
|
||||||
<form class="modal-content" #form (ngSubmit)="submit()" [appApiAction]="formPromise" ngNativeValidate>
|
<form class="modal-content" #form (ngSubmit)="submit()" [appApiAction]="formPromise" ngNativeValidate autocomplete="off">
|
||||||
<div class="modal-header">
|
<div class="modal-header">
|
||||||
<h2 class="modal-title">{{title}}</h2>
|
<h2 class="modal-title">{{title}}</h2>
|
||||||
<button type="button" class="close" data-dismiss="modal" attr.aria-label="{{'close' | i18n}}">
|
<button type="button" class="close" data-dismiss="modal" attr.aria-label="{{'close' | i18n}}">
|
||||||
@ -58,7 +58,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<input id="loginPassword" class="form-control text-monospace" type="{{showPassword ? 'text' : 'password'}}" name="Login.Password"
|
<input id="loginPassword" class="form-control text-monospace" type="{{showPassword ? 'text' : 'password'}}" name="Login.Password"
|
||||||
[(ngModel)]="cipher.login.password" appInputVerbatim>
|
[(ngModel)]="cipher.login.password" appInputVerbatim autocomplete="new-password">
|
||||||
<div class="input-group-append">
|
<div class="input-group-append">
|
||||||
<button type="button" class="btn btn-outline-secondary" title="{{'toggleVisibility' | i18n}}" (click)="togglePassword()"
|
<button type="button" class="btn btn-outline-secondary" title="{{'toggleVisibility' | i18n}}" (click)="togglePassword()"
|
||||||
tabindex="-1">
|
tabindex="-1">
|
||||||
@ -190,7 +190,7 @@
|
|||||||
<label for="cardCode">{{'securityCode' | i18n}}</label>
|
<label for="cardCode">{{'securityCode' | i18n}}</label>
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<input id="cardCode" class="form-control text-monospace" type="{{showCardCode ? 'text' : 'password'}}" name="Card.Code" [(ngModel)]="cipher.card.code"
|
<input id="cardCode" class="form-control text-monospace" type="{{showCardCode ? 'text' : 'password'}}" name="Card.Code" [(ngModel)]="cipher.card.code"
|
||||||
appInputVerbatim>
|
appInputVerbatim autocomplete="new-password">
|
||||||
<div class="input-group-append">
|
<div class="input-group-append">
|
||||||
<button type="button" class="btn btn-outline-secondary" title="{{'toggleVisibility' | i18n}}" (click)="toggleCardCode()"
|
<button type="button" class="btn btn-outline-secondary" title="{{'toggleVisibility' | i18n}}" (click)="toggleCardCode()"
|
||||||
tabindex="-1">
|
tabindex="-1">
|
||||||
@ -332,7 +332,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="input-group" *ngIf="f.type === fieldType.Hidden">
|
<div class="input-group" *ngIf="f.type === fieldType.Hidden">
|
||||||
<input id="fieldValue{{i}}" type="{{f.showValue ? 'text' : 'password'}}" name="Field.Value{{i}}" [(ngModel)]="f.value" class="form-control text-monospace"
|
<input id="fieldValue{{i}}" type="{{f.showValue ? 'text' : 'password'}}" name="Field.Value{{i}}" [(ngModel)]="f.value" class="form-control text-monospace"
|
||||||
appInputVerbatim>
|
appInputVerbatim autocomplete="new-password">
|
||||||
<div class="input-group-append">
|
<div class="input-group-append">
|
||||||
<button type="button" class="btn btn-outline-secondary" title="{{'toggleVisibility' | i18n}}" (click)="toggleFieldValue(f)"
|
<button type="button" class="btn btn-outline-secondary" title="{{'toggleVisibility' | i18n}}" (click)="toggleFieldValue(f)"
|
||||||
tabindex="-1">
|
tabindex="-1">
|
||||||
|
Loading…
Reference in New Issue
Block a user