Skip to content
This repository has been archived by the owner on Jan 19, 2022. It is now read-only.

Commit

Permalink
Merge pull request #108 from mozilla/issue-104-password-manager
Browse files Browse the repository at this point in the history
Make email address field read only after password manager runs. Fixes Issue #104
  • Loading branch information
ozten committed Aug 2, 2013
2 parents ec24abf + 85f61de commit d37e726
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion server/views/signin.ejs
Expand Up @@ -12,7 +12,7 @@
<div class="center-col">
<label class="hidden" for="user"><%= gettext("Email address") %></label>
<input id="user" type="email" name="user" value="<%= email %>"
autocorrect="off" autocapitalize="off" disabled="true" />
autocorrect="off" autocapitalize="off" />
</div>


Expand Down
5 changes: 5 additions & 0 deletions static/js/signin.js
Expand Up @@ -3,6 +3,11 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

$(document).ready(function() {

setTimeout(function() {
$('[name=user]').attr('disabled', 'true');
}, 300);

// XXX: currently the server is plucking email out of get data when
// the auth page is rendered. It does this to render to the user
// their substituted email address.
Expand Down

0 comments on commit d37e726

Please sign in to comment.