主权项 |
1. A method for preventing password leakage into a user name field, the method comprising:
detecting, by one or more hardware processors, that a user of an electronic device has entered at least a character of a set of characters in a user name field appearing on a display associated with the electronic device; echoing the one or more characters, by one or more processors, to at least the display of the user name field; storing the one or more characters to provide a stored character string, by one or more processors, to provide a stored character string of the user name field; responsive to detecting, each respective character that has been entered into the user name field, incrementing and storing, by one or more hardware processors, a character count; responsive to the stored character string reaching a predetermined threshold value, comparing, by one or more hardware processors, the stored character string to a set of valid user name entries for the user name field; and responsive to the determining that the stored character string fails to match a portion of any of the user name entries in the set of valid user name entries;
clearing, by one or more hardware processors, the display of the stored character string,locking out the user, by one or more hardware processors, from the user name field until security has been re-established,transmitting, by one or more hardware processors, a first alert to the display associated with the electronic device, andtransmitting, by one or more hardware processors, a second alert, wherein the second alert is transmitted to a mobile phone number associated with valid user names entries indicating a portion of a user password is at risk of being compromised. |