if (login != null && login.length() > 0) {
return false;
}
String email = request.getParameter(UserConstants.KEY_EMAIL);
IOrionCredentialsService userAdmin = getUserAdmin();
User user = userAdmin.getUser(UserConstants.KEY_EMAIL, email);
if (user == null) {
// users registered before M10 will have an email for "login" and no value for "email"
user = userAdmin.getUser(UserConstants.KEY_LOGIN, email);
if (user != null) {
user = fixOldUser(userAdmin, user);
}
if (user == null) { // also checks for failure from `fixOldUser()`