IMO this is not good idea... If you have email of user, why not use FOSUserBundle to generate password and send it to user? =)

@pjedrzejewski ping