autocomplete="new-password" to disable autofilling

This commit is contained in:
Kyle Spearrin 2018-01-02 22:49:05 -05:00
parent a6f8e1b9a3
commit 25f2e9c1b7
3 changed files with 8 additions and 5 deletions

View File

@ -49,7 +49,7 @@
<p class="login-box-msg"> <p class="login-box-msg">
Complete logging in with YubiKey. Complete logging in with YubiKey.
</p> </p>
<form name="twoFactorForm" ng-submit="twoFactorForm.$valid && twoFactor(token)" api-form="twoFactorPromise" <form name="twoFactorForm" ng-submit="twoFactorForm.$valid && twoFactor(token)" api-form="twoFactorPromise"
autocomplete="off"> autocomplete="off">
<div class="callout callout-danger validation-errors" ng-show="twoFactorForm.$errors"> <div class="callout callout-danger validation-errors" ng-show="twoFactorForm.$errors">
<h4>Errors have occurred</h4> <h4>Errors have occurred</h4>
@ -63,7 +63,8 @@
</p> </p>
<div class="form-group" show-errors> <div class="form-group" show-errors>
<label for="code" class="sr-only">Token</label> <label for="code" class="sr-only">Token</label>
<input type="password" id="code" name="Token" class="form-control" ng-model="token" required api-field /> <input type="password" id="code" name="Token" class="form-control" ng-model="token"
autocomplete="new-password" required api-field />
</div> </div>
<div class="row"> <div class="row">
<div class="col-xs-7"> <div class="col-xs-7">
@ -86,7 +87,7 @@
<p class="login-box-msg"> <p class="login-box-msg">
Complete logging in with Duo. Complete logging in with Duo.
</p> </p>
<form name="twoFactorForm" ng-submit="twoFactorForm.$valid && twoFactor(token)" api-form="twoFactorPromise" <form name="twoFactorForm" ng-submit="twoFactorForm.$valid && twoFactor(token)" api-form="twoFactorPromise"
autocomplete="off"> autocomplete="off">
<div class="callout callout-danger validation-errors" ng-show="twoFactorForm.$errors"> <div class="callout callout-danger validation-errors" ng-show="twoFactorForm.$errors">
<h4>Errors have occurred</h4> <h4>Errors have occurred</h4>

View File

@ -87,7 +87,8 @@
<label for="password">Password</label> <label for="password">Password</label>
<div class="input-group"> <div class="input-group">
<input type="password" id="password" name="Login.Password" ng-model="cipher.login.password" <input type="password" id="password" name="Login.Password" ng-model="cipher.login.password"
class="form-control monospaced" ng-readonly="readOnly" api-field /> class="form-control monospaced" ng-readonly="readOnly" api-field
autocomplete="new-password" />
<span class="input-group-btn" uib-tooltip="Copy Password" tooltip-placement="left"> <span class="input-group-btn" uib-tooltip="Copy Password" tooltip-placement="left">
<button class="btn btn-default btn-flat" type="button" ngclipboard <button class="btn btn-default btn-flat" type="button" ngclipboard
ngclipboard-success="clipboardSuccess(e)" ngclipboard-error="clipboardError(e, true)" ngclipboard-success="clipboardSuccess(e)" ngclipboard-error="clipboardError(e, true)"

View File

@ -79,7 +79,8 @@
<label for="password">Password</label> <label for="password">Password</label>
<div class="input-group"> <div class="input-group">
<input type="password" id="password" name="Login.Password" ng-model="cipher.login.password" <input type="password" id="password" name="Login.Password" ng-model="cipher.login.password"
class="form-control monospaced" ng-readonly="readOnly" api-field /> class="form-control monospaced" ng-readonly="readOnly" api-field
autocomplete="new-password" />
<span class="input-group-btn" uib-tooltip="Copy Password" tooltip-placement="left"> <span class="input-group-btn" uib-tooltip="Copy Password" tooltip-placement="left">
<button class="btn btn-default btn-flat" type="button" ngclipboard <button class="btn btn-default btn-flat" type="button" ngclipboard
ngclipboard-success="clipboardSuccess(e)" ngclipboard-error="clipboardError(e, true)" ngclipboard-success="clipboardSuccess(e)" ngclipboard-error="clipboardError(e, true)"