Ok I checked, FOSUserBundle canonicalizes the username to find the user signing in. So it's fine :)