Issue #657472 by thePanz, joachim, greggles: Add setting to allow users to login with email address or username