Skip to content

Commit

Permalink
CREDENTIAL: Invert 'acceptPasswords'. Fixes #249.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikewest committed Apr 16, 2015
1 parent c43e0d8 commit f311e51
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions specs/credentialmanagement/index.src.html
Original file line number Diff line number Diff line change
Expand Up @@ -625,18 +625,16 @@ <h3 id="interfaces-request-options">get Options</h3>

<pre class="idl">
dictionary CredentialRequestOptions {
boolean acceptPasswords = true;
boolean excludePasswords = false;
sequence&lt;USVString&gt; federations;
boolean suppressUI = false;
};
</pre>
<dl dfn-for="CredentialRequestOptions">
<dt><dfn dict-member>acceptPasswords</dfn></dt>
<dt><dfn dict-member>excludePasswords</dfn></dt>
<dd>
If <code>true</code>, the user agent will return {{LocalCredential}}
If <code>true</code>, the user agent will not return {{LocalCredential}}
objects in response to a request.

ISSUE(w3c/webappsec#249): Anne notes that this should be inversed.
</dd>
<dt><dfn dict-member>federations</dfn></dt>
<dd>
Expand All @@ -661,7 +659,7 @@ <h3 id="interfaces-request-options">get Options</h3>

<pre>
navigator.<a idl>credentials</a>.<a idl lt="get()">get</a>({
"<a idl>acceptPasswords</a>": false,
"<a idl>excludePasswords</a>": true,
"<a idl>federations</a>": [ "https://identity.example.com/" ]
}).then(function (credential) {
// ...
Expand All @@ -675,7 +673,7 @@ <h3 id="interfaces-request-options">get Options</h3>

<pre>
navigator.<a idl>credentials</a>.<a idl lt="get()">get</a>({
"<a idl>acceptPasswords</a>": false,
"<a idl>excludePasswords</a>": true,
"<a idl>federations</a>": [ "https://identity.example.com/" ],
"<a idl>suppressUI</a>": true
}).then(function (credential) {
Expand Down

0 comments on commit f311e51

Please sign in to comment.