Skip to content

Instantly share code, notes, and snippets.

@thatsokaybaby
Created November 19, 2012 17:23
Show Gist options
  • Save thatsokaybaby/4112052 to your computer and use it in GitHub Desktop.
Save thatsokaybaby/4112052 to your computer and use it in GitHub Desktop.
SecureLogin 1.0.1 / fix google/amazon login
--- secureLogin.js Mon Nov 19 07:08:50 2012
+++ secureLogin.js Wed Nov 21 08:01:20 2012
@@ -836,7 +836,7 @@
// Skip disabled elements or elements without a "name":
if(!elements[i].name || elements[i].disabled)
continue;
- if(elements[i].type == 'text') {
+ if(elements[i].type == 'text' || elements[i].type == 'email') {
// input of type "text" found, this is no password only form:
inputTextFound = true;
@@ -850,7 +850,7 @@
usernameField = elements[i];
break;
}
- if(elements[j].type == 'text') {
+ if(elements[j].type == 'text' || elements[j].type == 'email') {
// Another textfield found, this might be the username field, so break out of the loop:
break;
}
@@ -1539,6 +1539,7 @@
}
switch(elements[i].type) {
+ case 'email':
case 'text':
if(!usernameField || elements[i].name != usernameField.name) {
addToDataString(elements[i].name, elements[i].value);
@thatsokaybaby
Copy link
Author

Updated for secureLogin 1.0.1, see earlier version for 1.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment