if (empty($user = $this->doctrine->getRepository($this->config['class']['user'])->findOneByMail($mail))) {
//Throw not found
//XXX: prevent slugger reverse engineering by not displaying decoded mail
- throw $this->createNotFoundException($this->translator->trans('Unable to find account %mail%', ['%mail%' => $smail]));
+ throw $this->createNotFoundException($this->translator->trans('Unable to find account: %mail%', ['%mail%' => $smail]));
}
//Prevent access when not admin, user is not guest and not currently logged user