Ok no problem, I found that mail is an pre-existing attribute, if they use that attribute we allow them to login with username or username@yourcompany.com where "@yourcompany.com" is the option attribute, maybe we can enable that option if the user wants that and by default do nothing, what you think about?