Skip to content

Commit

Permalink
Merge pull request #5421 from IQSS/5419-less_autocomplete
Browse files Browse the repository at this point in the history
add attribute to fields
  • Loading branch information
kcondon authored Jan 11, 2019
2 parents 36dea68 + 09b5065 commit c0f1655
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions src/main/webapp/dataverseuser.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@
</span>
</label>
<div class="col-sm-4">
<p:password id="currentPassword" label="#{bundle['user.currentPasswd']}" styleClass="form-control" value="#{DataverseUserPage.currentPassword}" />
<p:password id="currentPassword" label="#{bundle['user.currentPasswd']}" styleClass="form-control" value="#{DataverseUserPage.currentPassword}" autocomplete="off"/><!-- browsers will in general not respect autocomplete="foo", but scanners will still flag it as a potential problem -->
<p:message for="currentPassword" display="text" />
</div>
</div>
Expand All @@ -540,7 +540,7 @@
</div>
</div>
<div class="col-sm-4 col-sm-offset-3">
<p:password id="inputPassword" label="#{DataverseUserPage.editMode == 'CREATE' ? bundle['user.password'] : bundle['user.newPassword']}" styleClass="form-control" match="retypePassword" value="#{DataverseUserPage.inputPassword}" validator="#{DataverseUserPage.validateNewPassword}" />
<p:password id="inputPassword" label="#{DataverseUserPage.editMode == 'CREATE' ? bundle['user.password'] : bundle['user.newPassword']}" styleClass="form-control" match="retypePassword" value="#{DataverseUserPage.inputPassword}" validator="#{DataverseUserPage.validateNewPassword}" autocomplete="off"/><!-- browsers will in general not respect autocomplete="foo", but scanners will still flag it as a potential problem -->
<p:message for="inputPassword" display="text" />
</div>
</div>
Expand All @@ -552,7 +552,7 @@
</span>
</label>
<div class="col-sm-4">
<p:password id="retypePassword" label="#{bundle['user.rePasswd']}" styleClass="form-control" value="#{DataverseUserPage.inputPassword}" />
<p:password id="retypePassword" label="#{bundle['user.rePasswd']}" styleClass="form-control" value="#{DataverseUserPage.inputPassword}" autocomplete="off"/><!-- browsers will in general not respect autocomplete="foo", but scanners will still flag it as a potential problem -->
<p:message for="retypePassword" display="text" />
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/main/webapp/loginpage.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
<div class="col-sm-8">
<h:inputText rendered="#{not fc.credential.secret}" value="#{fc.value}" id="credValue" styleClass="form-control"/>
<p:message rendered="#{not fc.credential.secret}" for="credValue" display="text"/>
<h:inputSecret rendered="#{fc.credential.secret}" value="#{fc.value}" id="sCredValue" styleClass="form-control"/>
<h:inputSecret rendered="#{fc.credential.secret}" value="#{fc.value}" id="sCredValue" styleClass="form-control" autocomplete="off"/><!-- browsers will in general not respect autocomplete="foo", but scanners will still flag it as a potential problem -->
<p:message rendered="#{not fc.credential.secret}" for="sCredValue" display="text"/>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/main/webapp/oauth2/convert.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
#{bundle['login.builtin.credential.password']}
</label>
<div class="col-sm-9">
<h:inputSecret value="#{OAuth2FirstLoginPage.password}" />
<h:inputSecret value="#{OAuth2FirstLoginPage.password}" autocomplete="off"/><!-- browsers will in general not respect autocomplete="foo", but scanners will still flag it as a potential problem -->
</div>
</div>

Expand Down Expand Up @@ -83,4 +83,4 @@
</ui:define>
</ui:composition>
</h:body>
</html>
</html>
4 changes: 2 additions & 2 deletions src/main/webapp/passwordreset.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
</div>
</div>
<div class="col-sm-4 col-sm-offset-3">
<p:password id="inputPassword" label="#{bundle.passwd}" match="retypePassword" styleClass="form-control" value="#{PasswordResetPage.newPassword}" validator="#{PasswordResetPage.validateNewPassword}"/>
<p:password id="inputPassword" label="#{bundle.passwd}" match="retypePassword" styleClass="form-control" value="#{PasswordResetPage.newPassword}" validator="#{PasswordResetPage.validateNewPassword}" autocomplete="off"/><!-- browsers will in general not respect autocomplete="foo", but scanners will still flag it as a potential problem -->
<p:message for="inputPassword" />
<p:focus for="inputPassword" />
</div>
Expand All @@ -128,7 +128,7 @@
#{bundle['passwdReset.rePasswd']} <span class="glyphicon glyphicon-asterisk text-danger" title="#{bundle.requiredField}"></span>
</label>
<div class="col-sm-4">
<p:password id="retypePassword" label="#{bundle['passwdReset.rePasswd']}" styleClass="form-control" value="#{PasswordResetPage.newPassword}"/>
<p:password id="retypePassword" label="#{bundle['passwdReset.rePasswd']}" styleClass="form-control" value="#{PasswordResetPage.newPassword}" autocomplete="off"/><!-- browsers will in general not respect autocomplete="foo", but scanners will still flag it as a potential problem -->
<p:message for="retypePassword" />
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/main/webapp/shib.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
#{bundle['shib.currentDataversePassword']}
</label>
<div class="col-sm-3">
<p:password id="builtinPassword" styleClass="form-control" value="#{Shib.builtinPassword}"/>
<p:password id="builtinPassword" styleClass="form-control" value="#{Shib.builtinPassword}" autocomplete="off"/><!-- browsers will in general not respect autocomplete="foo", but scanners will still flag it as a potential problem -->
<p class="help-block">
<a href="passwordreset.xhtml">#{bundle['login.forgot.text']}</a>
</p>
Expand Down Expand Up @@ -138,4 +138,4 @@
</ui:define>
</ui:composition>
</h:body>
</html>
</html>

0 comments on commit c0f1655

Please sign in to comment.