Permalink
Browse files

lowercase username in auth and provisioning pages

  • Loading branch information...
1 parent 5f861eb commit dcb14eba6caa0307c3b7c5b65946f9f8ec554ba1 @lloyd lloyd committed Feb 8, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 static/browserid/provision.html
  2. +1 −1 static/js/sign_in.js
@@ -15,7 +15,7 @@
// is he authenticated to eyedee.me?
$.get('/api/whoami')
.success(function(r) {
- email = email.replace('@eyedee.me', '');
+ email = email.replace('@eyedee.me', '').toLowerCase();
if (email != r.user) {
return fail('user is not authenticated as target user');
}
View
@@ -1,7 +1,7 @@
$(document).ready(function() {
navigator.id.beginAuthentication(function(email) {
$(".email").text(email);
- var user = email.replace('@eyedee.me', '')
+ var user = email.replace('@eyedee.me', '').toLowerCase();
// check if that email exists here
$.ajax({

0 comments on commit dcb14eb

Please sign in to comment.