Examine the login form received for a second password field and,
if found, assume we need to prompt for a secondary password for
a 2-factor auth system (e.g. hardware tokens).
Our site uses RSA SecurID tokens for two-factor authentication. We prompt for the primary and secondary passwords together on the login page. This patch enables prompting for the token ID if there is a second password field found and, if not, it doesn't break or change the existing behavior.
Examine the login form received for a second password field and, if found, assume we need to prompt for a secondary password for a 2-factor auth system (e.g. hardware tokens).
Our site uses RSA SecurID tokens for two-factor authentication. We prompt for the primary and secondary passwords together on the login page. This patch enables prompting for the token ID if there is a second password field found and, if not, it doesn't break or change the existing behavior.